Gert Wollny <gw.fossdev@...> writes: > > Am 10.10.2011 19:09, schrieb Nikhil Agarwal: > > Hi all, > > > > I'm getting the following error despite using ./configure --enable-shared > > and > > setting the LD_LIBRARY_PATH.. > > > > /usr/bin/ld: ../.libs/libnlopt.a(optimize.o): ... > You could try to delete the static library > > ".libs/libnlopt.a", go to the octave directory and run make there another > time. > > or you add -fPIC to the CFLAGS when configuring the project and recompile everything. In that case the > --enable-shared is in theory no longer neccessary, (but the configure scripts does a test here that might > fail). > > Hope that helps, > Gert > >
Thanks. It seemed to help a little. Now I have the following error: collect2: ld returned 1 exit status make[2]: *** [redblack_test] Error 1 make[2]: Leaving directory `/home/nikhil/nlopt-2.2.4/util' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/nikhil/nlopt-2.2.4' make: *** [all] Error 2 _______________________________________________ NLopt-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
