[Ipopt] linux gcc compile errors,help

Andreas Waechter awaechter.iems at gmail.com
Fri Dec 30 10:38:59 EST 2011


Hi,

This looks like a mistake in your reatvOptSolver.cpp file (related to 
"min" having only one argument).

Andreas

On 12/30/2011 02:18 AM, Lqc wrote:
> 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
>
>
>
>
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20111230/cbc2d163/attachment.html>


More information about the Ipopt mailing list