[Ipopt] linux gcc compile errors,help

Lqc lqc234 at 126.com
Tue Dec 6 19:47:14 EST 2011


I used ipopt-3.8.1 in my applications. However there are some gcc compile errors which from linux c++ library when I compile my application in RedHat Linux.I think these errors should be from my c++ files, I have no idea about these errors because they seemed be from linux c++ libray.
 The errors are as followings:
     /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/locale_facets.tcc:569:34: error:macro "min" need 2 parameters,but only given 1.
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/locale_facets.tcc:569:67: error:macro "max" need 2 parameters,but only given 1.
           在包含自 /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/istream:819 的文件中,
                 从 /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iostream:45,
                 从 /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/backward/iostream.h:32,
                 从 reatvOptSolver.cpp:2:
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/istream.tcc:151:36: error:macro "min" need 2 parameters,but only given 1.
 
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/istream.tcc:152:46: error:macro "max" need 2 parameters,but only given 1.
 ....
 
and so on.
 
 I attached the erros in the attachment, also my c++ files. Appreciate for any suggestions and help! Thank you very much!
                                                                                                                           LinuQuanchang
                                                                                                                           YanTai City,China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20111207/084463d7/attachment.html>


More information about the Ipopt mailing list