[Ipopt] undefined reference to '_Ma27cd_'

Stefan Vigerske stefan at vigerske.de
Sat Oct 4 07:21:44 EDT 2008


Hi,

> I met another problem when I went in the Ipopt/test  I met an error saying:
> 
>  "src/Interfence/.libs/libiopt.a<IpMa27SolverInterface.o>
> IpMa27SolverInterface.cpp undefined reference to '_Ma27cd_'
> 
>  "src/Interfence/.libs/libiopt.a<IpMa27SolverInterface.o>
> IpMa27SolverInterface.cpp undefined reference to '_Ma27bd_'
> 
>  "src/Interfence/.libs/libiopt.a<IpMa27SolverInterface.o>
> IpMa27SolverInterface.cpp undefined reference to '_Ma27ad_'
> 
>  "src/Interfence/.libs/libiopt.a<IpMa27SolverInterface.o>
> IpMa27SolverInterface.cpp undefined reference to '_Ma27id_'

Sure it is src/Interfence and libiopt.a ?
It should be src/Interface and libipopt.a.

> I already download the Ma27ad.f file into HSL folder.
> Any idea?

Difficult to say.
Does ma27ad.f include all the subroutines ma27cd, ma27bd, ma27ad, ma27id?

Can you make sure that there was no problem in compiling ThirdParty/HSL.
In ThirdParty/HSL/.libs, there should be a file libcoinhsl.a.
The command "ar t libcoinhsl.a" should show you at least a ma27ad.o
The command "nm .libs/libcoinhsl.a  | grep -i ma27" should show the
symbol names as they are expected by IpMa27SolverInterface.o, i.e.,
_Ma27cd_, _Ma27bd_, ... with exact the same underlines ('_') and the
capitalization.

And if all this was ok, can you make sure whether libcoinhsl.a was
included into libipopt.a, maybe by recompiling libipopt.a and inspecting
the linker flags used.

Stefan


More information about the Ipopt mailing list