Stefan,<br><br>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.<br>
<br>- Anil<br><br><br><div class="gmail_quote">On Wed, Dec 16, 2009 at 9:06 AM, Stefan Vigerske <span dir="ltr"><<a href="mailto:stefan@math.hu-berlin.de">stefan@math.hu-berlin.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
it looks like it is missing the STD. On Linux I would try adding<br>
-lstdc++ to the linker flags.<br>
<font color="#888888"><br>
Stefan<br>
</font><div><div></div><div class="h5"><br>
Anil Rao wrote:<br>
> All,<br>
><br>
> I have made some progress with the compilation of IPOPT on Mac OS-X Snow<br>
> Leopard. My configure script is now as follows:<br>
><br>
> ./configure --prefix=$HOME/ipopt/install<br>
> ADD_CFLAGS="-fno-common -fexceptions -no-cpp-precomp -fPIC"<br>
> ADD_CXXFLAGS="-fno-common -fexceptions -no-cpp-precomp -fPIC"<br>
> ADD_FFLAGS="-x f77-cpp-input -fPIC -fno-common"<br>
> FLIBS="-lSystem -lgfortran" F77=gfortran CC=gcc CXX=g++ -disable-shared<br>
><br>
> I am now able to compile the IPOPT static library with no errors. When I<br>
> try to compile the Matlab interface, however, I run into the following error<br>
> during compilation:<br>
><br>
> Undefined symbols:<br>
> "std::basic_ostream<char, std::char_traits<char> >&<br>
> std::__ostream_insert<char, std::char_traits<char><br>
>> (std::basic_ostream<char, std::char_traits<char> >&, char const*, long)",<br>
> referenced from:<br>
> Ipopt::StreamJournal::PrintfImpl(Ipopt::EJournalCategory,<br>
> Ipopt::EJournalLevel, char const*, __va_list_tag*)in<br>
> libipopt.a(IpJournalist.o)<br>
> Ipopt::StreamJournal::PrintImpl(Ipopt::EJournalCategory,<br>
> Ipopt::EJournalLevel, char const*)in libipopt.a(IpJournalist.o)<br>
> ld: symbol(s) not found<br>
> collect2: ld returned 1 exit status<br>
><br>
> mex: link of ' "ipopt.mexmaci64"' failed.<br>
><br>
><br>
> Can somebody tell me what library I am missing?<br>
><br>
> - Anil<br>
><br>
><br>
><br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
<div class="im">><br>
> _______________________________________________<br>
> Ipopt mailing list<br>
> <a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>
> <a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br>
<br>
<br>
</div><div><div></div><div class="h5">--<br>
Stefan Vigerske<br>
Humboldt University Berlin, Numerical Mathematics<br>
<a href="http://www.math.hu-berlin.de/%7Estefan" target="_blank">http://www.math.hu-berlin.de/~stefan</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anil V. Rao<br>Assistant Professor<br>Dept. of Mechanical and Aerospace Engineering<br>University of Florida<br>MAE-A Room 314<br>Gainesville, FL 32611-6250<br>
E-mail: <a href="mailto:anilvrao@ufl.edu">anilvrao@ufl.edu</a><br>Tel: (352) 392-5523 (office)<br> (352) 672-1529 (cell)<br><br>