[Ipopt] Snow Leopard Matlab Compilation Problems
Anil Rao
anilvrao at gmail.com
Fri Dec 18 08:42:15 EST 2009
Hi Everyone,
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:
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.
I am using the following configure command:
./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="-lgfortran -lSystem" \
F77=gfortran CC=gcc CXX=g++
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.
Any help would be appreciated.
- Anil
--
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/20091218/314127ba/attachment.html
More information about the Ipopt
mailing list