[Ipopt-tickets] [Ipopt] #192: Compilation error for bld 3.10.0 using MSVS-2010 ---> fatal error C1189 "don't have header file for math"
Ipopt
coin-trac at coin-or.org
Sun Jan 27 20:41:38 EST 2013
#192: Compilation error for bld 3.10.0 using MSVS-2010 ---> fatal error C1189
"don't have header file for math"
--------------------------+-------------------------------
Reporter: dhavaljdave | Owner: ipopt-team
Type: defect | Status: new
Priority: lowest | Component: Ipopt
Version: 3.10 | Severity: normal
Resolution: | Keywords: Compilation error
--------------------------+-------------------------------
Changes (by stefan):
* priority: highest => lowest
* severity: blocker => normal
Comment:
Such error messages come up if C preprocessor symbols like HAVE_CMATH are
not defined during build.
In a autotools supported build (i.e., via configure), a config.h header
file with such symbols is generated during configure.
For non-autotools builds, {{{BuildTools/headers/configall_system_msc.h}}}
takes care of this. This file is included by
{{{BuildTools/headers/configall_system.h}}}, which is included by
{{{Ipopt/src/Common/config_default.h}}}, which is included by
{{{Ipopt/src/Common/IpoptConfig.h}}}, if IPOPT_BUILD has been defined.
Thus, if you build via the MSVS environment, you may have to add
-DIPOPT_BUILD to the compiler flags.
--
Ticket URL: <https://projects.coin-or.org/ticket/192#comment:1>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.
More information about the Ipopt-tickets
mailing list