<div class="gmail_quote">On Wed, Jul 29, 2009 at 2:37 PM, Rishi Amrit <span dir="ltr"><<a href="mailto:rishiamrit@gmail.com" target="_blank">rishiamrit@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br> I was able to compile ipopt 3.7.0 with pardiso using the following configure command:<br><br>
./configure --prefix=$HOME/octave-src/ipopt370/install ADD_CXXFLAGS="-fPIC -fexceptions" ADD_CFLAGS="-fPIC -fexceptions" ADD_FFLAGS="-fPIC -fexceptions" --with-pardiso="-fopenmp $HOME/octave-src/ipopt370/libpardiso_GNU43_AMD64_INT64_P.so"<br>
<br>Now when I run ipopt on my problem, via mex interface, I get the following error:<br><br>symbol lookup error: /home/rishiamrit/octave-src/ipopt370/libpardiso_GNU43_AMD64_INT64_P.so: undefined symbol: GOMP_parallel_start<br>
<br>Any ideas ? Am I supposed to link gomp library (/usr/lib/gcc/x86_64-linux-gnu/4.3/libgomp.a) somehow ? If so, how ?</blockquote>
<div> </div>
<div> </div>
<div>Ok. I found the solution. Thanks to Carl Laird for the pointer. We need to include the library for gomp in the configure command. I used:</div>
<div> </div>
<div> ./configure --prefix=$HOME/octave-src/ipopt370/install ADD_CXXFLAGS="-fPIC -fexceptions" ADD_CFLAGS="-fPIC -fexceptions" ADD_FFLAGS="-fPIC -fexceptions" --with-pardiso="-fopenmp $HOME/octave-src/ipopt370/libpardiso_GNU43_AMD64_INT64_P.so" ADD_LIBS="-L/usr/lib/gcc/x86_64-linux-gnu/4.3 -lgomp"</div>
<div> </div>
<div>Now Pardiso works.</div>
<div> </div>
<div>Rishi</div></div>