Opened 5 years ago

Closed 2 years ago

#110 closed defect (worksforme)

Couenne does not compile with gcc 4.7.2

Reported by: fmargot Owned by: stefan
Priority: minor Component: build system
Version: 0.7 Keywords:
Cc:

Description

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

Change History (2)

comment:1 Changed 5 years ago by stefan

I don't understand this error message.

ClpHelperFunctions.hpp:10 has only a #ifdef HAVE_CMATH, no #define HAVE_CMATH.

Can you check that you have a clean checkout?

comment:2 Changed 2 years ago by stefan

  • Resolution set to worksforme
  • Status changed from new to closed

No response from reporter for 3 years. Closing ticket.

Note: See TracTickets for help on using tickets.