[Ipopt] More Snow Leopard IPOPT Questions

Anil Rao anilvrao at gmail.com
Wed Dec 16 13:37:05 EST 2009


Stefan,

Thanks for the help.  I tried adding "-lstdc++", but I still get the same
error.  I added this to the configure script and recompiled IPOPT, then I
tried to recompile the Matlab interface.  I am confused because I did not
have this problem with Mac OS-X 10.5.

- Anil


On Wed, Dec 16, 2009 at 9:06 AM, Stefan Vigerske
<stefan at math.hu-berlin.de>wrote:

> 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<http://www.math.hu-berlin.de/%7Estefan>
>



-- 
Anil V. Rao
Assistant Professor
Dept. of Mechanical and Aerospace Engineering
University of Florida
MAE-A Room 314
Gainesville, FL 32611-6250
E-mail:  anilvrao at ufl.edu
Tel: (352) 392-5523 (office)
     (352) 672-1529 (cell)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20091216/bcbc5b08/attachment.html 


More information about the Ipopt mailing list