[Ipopt] redefinitions in config_ipopt.h
Ashutosh Mahajan
asm4 at lehigh.edu
Thu Jun 4 14:47:27 EDT 2009
hello everyone,
im trying to call ipopt from another program. i compile my program using
autotools. while doing "make", i recieve the warnings about some macros
defined in config_ipopt.h. i dont understand why this file is actually
included from IpoptConfig.h, especially after reading this thread:
http://www.mail-archive.com/autoconf@gnu.org/msg15791.html
i can ignore the warnings for now as they are not serious enough, but looks
like these could affect a more complicated setup.
the warnings:
In file included from
/home/mahajan/src/ipopt-3.6.1/build/include/coin/IpoptConfig.h:27,
from
/home/mahajan/src/ipopt-3.6.1/build/include/coin/IpDebug.hpp:12,
from
/home/mahajan/src/ipopt-3.6.1/build/include/coin/IpUtils.hpp:14,
from
/home/mahajan/src/ipopt-3.6.1/build/include/coin/IpTNLP.hpp:12,
from ../src/base/IpoptEngine.h:10,
from ../src/base/IpoptEngine.cpp:12:
/home/mahajan/src/ipopt-3.6.1/build/include/coin/config_ipopt.h:182:1:
warning: "PACKAGE" redefined
<command-line>: warning: this is the location of the previous definition
/home/mahajan/src/ipopt-3.6.1/build/include/coin/config_ipopt.h:185:1:
warning: "PACKAGE_BUGREPORT" redefined
<command-line>: warning: this is the location of the previous definition
/home/mahajan/src/ipopt-3.6.1/build/include/coin/config_ipopt.h:188:1:
warning: "PACKAGE_NAME" redefined
<command-line>: warning: this is the location of the previous definition
/home/mahajan/src/ipopt-3.6.1/build/include/coin/config_ipopt.h:191:1:
warning: "PACKAGE_STRING" redefined
<command-line>: warning: this is the location of the previous definition
/home/mahajan/src/ipopt-3.6.1/build/include/coin/config_ipopt.h:194:1:
warning: "PACKAGE_TARNAME" redefined
<command-line>: warning: this is the location of the previous definition
/home/mahajan/src/ipopt-3.6.1/build/include/coin/config_ipopt.h:197:1:
warning: "PACKAGE_VERSION" redefined
<command-line>: warning: this is the location of the previous definition
/home/mahajan/src/ipopt-3.6.1/build/include/coin/config_ipopt.h:209:1:
warning: "VERSION" redefined
<command-line>: warning: this is the location of the previous definition
--
regards
Ashutosh Mahajan
http://coral.ie.lehigh.edu/~asm4
More information about the Ipopt
mailing list