[Ipopt] Matlab fPIC error

Cemre Zor cemree at gmail.com
Wed Jun 6 20:36:51 EDT 2012


I did copy and paste the matlab folder of the version 3.7.1 inside
3.10.0 and now it works. Strangely, I coulndnt run either 3.7 or 3.10
independently.

On Thu, Jun 7, 2012 at 1:07 AM, Cemre Zor <cemree at gmail.com> wrote:
> 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