Hi Everyone,<br><br>I still having trouble compiling IPOPT on Mac OS-X Snow Leopard. I am able to compile
the IPOPT library without errors, but I cannot compile the matlab
interface. When I try to compile the mex file, I get the following
error:<br>
<br>Undefined symbols:<br> "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:<br>
Ipopt::StreamJournal::<div id=":14j" class="ii gt">PrintfImpl(Ipopt::EJournalCategory, Ipopt::EJournalLevel, char const*, __va_list_tag*)in libipopt.a(IpJournalist.o)<br> Ipopt::StreamJournal::PrintImpl(Ipopt::EJournalCategory, 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>I am using the following configure command:<br><pre style="font-family: arial,helvetica,sans-serif;">
./configure --prefix=$HOME/<span class="searchword0">ipopt</span>/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="-lgfortran -lSystem" \<br> F77=gfortran CC=gcc CXX=g++</pre>All of this, by the way, works just fine in Mac OS-X 10.5 (Leopard). It
seems to me that there is a problem linking to libstdc++, but I have no
idea why. I have included the flag "-lstdc++" in the compilation, but
that does not seem to help. <br>
<br>Any help would be appreciated.<br><br>- Anil</div><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>