[Ipopt] Matlab fPIC error
Cemre Zor
cemree at gmail.com
Wed Jun 6 20:07:40 EDT 2012
Hello,
Although I have configured using the command following command:
./configure ADD_CXXFLAGS="-fPIC -fexceptions" ADD_CFLAGS="-fPIC
-fexceptions" ADD_FFLAGS="-fPIC -fexceptions" -disable-shared
I still am getting the fPIC error of:
/usr/bin/ld: matlabexception.o: relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object;
recompile with -fPIC
matlabexception.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
mex: link of ' "ipopt.mexa64"' failed.
There is no problem in testing any of the cpp examples, however I cant
get the Matlab mex built.
Any help is highly appreciated.
More information about the Ipopt
mailing list