[Ipopt] Get errors of the Ipopt Mex file in Matlab

Gao, Z. Z.Gao at uva.nl
Tue Jul 21 14:28:56 EDT 2009


Hello all,

I am trying to use Ipopt in Matlab. I (succesufully?) generated an ipopt.mexglx file and added its path to matlab. But when I tried to run the examples, I got this message:

  >> examplehs038
  ??? Invalid MEX-file '/home/gao/CoinIpopt/build/lib/ipopt.mexglx':
  /opt/matlab/R2008a/bin/glnx86/../../sys/os/glnx86/libstdc++.so.6: version
  `GLIBCXX_3.4.9' not found (required by
  /home/gao/CoinIpopt/build/lib/libipopt.so.0).

  Error in ==> examplehs038 at 33
    [x info] = ipopt(x0,funcs,options);

It seems possibly that my gcc version is inconsistent with libstdc++, so I check their versions. And I have

||/ Name           Version        Description
+++-==============-==============-============================================
ii  gcc            4:4.2.3-1ubunt The GNU C compiler
ii  g++            4:4.2.3-1ubunt The GNU C++ compiler
ii  gfortran       4:4.2.3-1ubunt The GNU Fortran 95 compiler

ii  libstdc++6     4.2.4-1ubuntu4 The GNU Standard C++ Library v3
ii  libstdc++6-4.2 4.2.4-1ubuntu4 The GNU Standard C++ Library v3 (debugging f
ii  libstdc++6-4.2 4.2.4-1ubuntu4 The GNU Standard C++ Library v3 (development
ii  libstdc++6-4.2 4.2.4-1ubuntu4 The GNU Standard C++ Library v3 (documentati

It seems OK. I have no idea what's going wrong. I am using matlab 7.6 and ubuntu 8.04 and run the configure script via

  ./configure  \
       ADD_CXXFLAGS="-fPIC -fexceptions"        \
       ADD_CFLAGS="-fPIC -fexceptions"          \
       ADD_FFLAGS="-fPIC -fexceptions"

Thanks.

Gao, Zhengyuan

----------------------------------------------------------
University of Amsterdam, FEB/ Department of Quantitative Economics
Roetersstraat 11,  1018WB,  Amsterdam
Tel: +31 20 525 4221
Emai: z.gao at uva.nl
http://home.uva.nl/z.gao

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20090721/6d64ec96/attachment.html 


More information about the Ipopt mailing list