[Ipopt] More Snow Leopard IPOPT Questions

Stefan Vigerske stefan at math.hu-berlin.de
Wed Dec 16 09:06:12 EST 2009


Hi,

it looks like it is missing the STD. On Linux I would try adding
-lstdc++ to the linker flags.

Stefan

Anil Rao wrote:
> All,
> 
> I have made some progress with the compilation of IPOPT on Mac OS-X Snow
> Leopard.  My configure script is now as follows:
> 
> ./configure --prefix=$HOME/ipopt/install
> ADD_CFLAGS="-fno-common -fexceptions -no-cpp-precomp -fPIC"
> ADD_CXXFLAGS="-fno-common -fexceptions -no-cpp-precomp -fPIC"
> ADD_FFLAGS="-x f77-cpp-input -fPIC -fno-common"
> FLIBS="-lSystem -lgfortran" F77=gfortran CC=gcc CXX=g++ -disable-shared
> 
> I am now able to compile the IPOPT static library with no errors.  When I
> try to compile the Matlab interface, however, I run into the following error
> during compilation:
> 
> Undefined symbols:
>   "std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
>> (std::basic_ostream<char, std::char_traits<char> >&, char const*, long)",
> referenced from:
>       Ipopt::StreamJournal::PrintfImpl(Ipopt::EJournalCategory,
> Ipopt::EJournalLevel, char const*, __va_list_tag*)in
> libipopt.a(IpJournalist.o)
>       Ipopt::StreamJournal::PrintImpl(Ipopt::EJournalCategory,
> Ipopt::EJournalLevel, char const*)in libipopt.a(IpJournalist.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> 
>     mex: link of ' "ipopt.mexmaci64"' failed.
> 
> 
> Can somebody tell me what library I am missing?
> 
> - Anil
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt


-- 
Stefan Vigerske
Humboldt University Berlin, Numerical Mathematics
http://www.math.hu-berlin.de/~stefan



More information about the Ipopt mailing list