[CoinUtils-tickets] [COIN-OR Common Utilities] #11: error in cygwin
build of OSI: CoinFinite.hpp:90: error: `_isnan' undeclared
COIN-OR Common Utilities
coin-trac at coin-or.org
Thu Dec 7 23:30:50 EST 2006
#11: error in cygwin build of OSI: CoinFinite.hpp:90: error: `_isnan' undeclared
------------------------+---------------------------------------------------
Reporter: Stu | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone:
Component: component1 | Version:
Keywords: |
------------------------+---------------------------------------------------
Copied from https://projects.coin-or.org/Osi/ticket/16
craig_schmidt reported:
Hi There,
I am trying to build Osi stable 0.95 using cygwin on Windows XP. This is
with gcc 3.4.4, and the updated version of make 3.81 as directed here
[https://projects.coin-or.org/BuildTools/wiki/current-issues]
I did the following steps:
1. did a new install of cygwin
2. use subversion to get OSI:
{{{
svn co http://www.coin-or.org/svn/Osi/stable/0.95 coin-Osi
}}}
3. did ./configure -C, which worked fine
4. did make, and got this error:
{{{
make[3]: Entering directory `/cygdrive/d/netflix/coin/coin-Osi/Osi/src'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I`cygpath -w .` -I../inc -I`cygpath -w /cygdrive/d/netflix/coin/coin-
Osi/CoinUtils/src` -I`cygpath -w /cygdrive/d/netflix/coin/coin-
Osi/Osi/../CoinUtils/inc` -O3 -fomit-frame-pointer -pipe -DNDEBUG
-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall
-Wpointer-arith -Wwrite-strings -Wconversion -MT OsiAuxInfo.lo -MD -MP
-MF ".deps/OsiAuxInfo.Tpo" -c -o OsiAuxInfo.lo OsiAuxInfo.cpp; \
then mv -f ".deps/OsiAuxInfo.Tpo" ".deps/OsiAuxInfo.Plo"; else rm -f
".deps/OsiAuxInfo.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../inc -Id:\\netflix\\coin\\coin-
Osi\\CoinUtils\\src -Id:\\netflix\\coin\\coin-Osi\\CoinUtils\\inc -O3
-fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit
-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-
strings -Wconversion -MT OsiAuxInfo.lo -MD -MP -MF .deps/OsiAuxInfo.Tpo -c
OsiAuxInfo.cpp -o OsiAuxInfo.o
In file included from d:/netflix/coin/coin-
Osi/CoinUtils/src/CoinMessageHandler.hpp:15,
from OsiSolverInterface.hpp:9,
from OsiAuxInfo.cpp:11:
d:/netflix/coin/coin-Osi/CoinUtils/src/CoinFinite.hpp: In function `bool
CoinIsnan(double)':
d:/netflix/coin/coin-Osi/CoinUtils/src/CoinFinite.hpp:90: error: `_isnan'
undeclared (first use this function)
d:/netflix/coin/coin-Osi/CoinUtils/src/CoinFinite.hpp:90: error: (Each
undeclared identifier is reported only once for each function it appears
in.)
make[3]: *** [OsiAuxInfo.lo] Error 1
make[3]: Leaving directory `/cygdrive/d/netflix/coin/coin-Osi/Osi/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/d/netflix/coin/coin-Osi/Osi/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/d/netflix/coin/coin-Osi/Osi'
make: *** [all-recursive] Error 1
}}}
I have determined that if I change/hack the definition of MY_C_ISNAN to
std::isnan i can get it to compile though that does assume I have <cmath>
--
Ticket URL: <https://projects.coin-or.org/CoinUtils/ticket/11>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects
More information about the CoinUtils-tickets
mailing list