[BuildTools-tickets] [BuildTools] #110: Couenne does not compile with gcc 4.7.2
BuildTools
coin-trac at coin-or.org
Tue Mar 18 08:46:58 EDT 2014
#110: Couenne does not compile with gcc 4.7.2
--------------------+--------------------------
Reporter: fmargot | Owner: stefan
Type: defect | Status: new
Priority: minor | Component: build system
Version: 0.7 | Keywords:
--------------------+--------------------------
Hi:
After doing a V_PATH configuration et compiling couenne-trunk with
gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC) on
Fedora release 18 (Spherical Cow) using:
../configure -C
make install
I get:
ClpSimplexDual.o
In file included from ../../../Clp/src/ClpConfig.h:28:0,
from ../../../Clp/src/ClpModel.hpp:9,
from ../../../Clp/src/ClpSimplex.hpp:16,
from ../../../Clp/src/ClpSimplexDual.hpp:14,
from ../../../Clp/src/ClpSimplexDual.cpp:101:
./config.h:85:0: error: "HAVE_CMATH" redefined
In file included from ../../../Clp/src/ClpSimplexDual.cpp:100:0:
../../../Clp/src/ClpHelperFunctions.hpp:10:0: note: this is the location
of the previous definition
The only fix I could find is to modify Clp/src/config.h as follows:
#ifndef HAVE_CMATH
#define HAVE_CMATH 1
#endif
Francois
--
Ticket URL: <https://projects.coin-or.org/BuildTools/ticket/110>
BuildTools <http://projects.coin-or.org/BuildTools>
Tools for configuring and compiling COIN-OR codes
More information about the BuildTools-tickets
mailing list