<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 27, 2010, at 5:59 PM, Jed Brown wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Tue, 27 Jul 2010 17:48:12 -0400, Xuan YU &lt;<a href="mailto:xxy113@psu.edu">xxy113@psu.edu</a>&gt; wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I run config/configure.py --download-sundials=1<br></blockquote><blockquote type="cite">make all<br></blockquote><blockquote type="cite">make test<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">and then, when I compile the code, there is no error but<br></blockquote><blockquote type="cite">pihm.o: In function `main':<br></blockquote><blockquote type="cite">pihm.c:(.text+0x1148): undefined reference to `TSSundialsSetType'<br></blockquote><blockquote type="cite">pihm.c:(.text+0x116d): undefined reference to `TSSundialsSetTolerance'<br></blockquote><blockquote type="cite">collect2: ld returned 1 exit status<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Does this mean that I didn't install sundials correctly?<br></blockquote><br>What happens when you<br><br> &nbsp;cd $PETSC_DIR/src/ts/examples/tutorials<br> &nbsp;make ex4<br> &nbsp;./ex4 -ts_type sundials<br><br></div></blockquote><div><br></div><div>It works well.</div><div><br></div><br><blockquote type="cite"><div>How are you linking PETSc? &nbsp;I wonder if you're linking a different build<br>than you just configured.<br><br></div></blockquote><div><br></div><div>my "PETSC_DIR &nbsp; &nbsp; &nbsp; = " is the same to that of makefile of ex4</div><br><blockquote type="cite"><div>Jed<br><br></div></blockquote></div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Xuan YU (<span class="Apple-style-span" style="font-family: arial; font-size: 16px; white-space: pre; ">俞烜<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; white-space: normal; ">)</span></span></div><div><a href="mailto:xxy113@psu.edu">xxy113@psu.edu</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"> </div><br></body></html>