[Coin-discuss] -pedantic-errors incompatible with #warning
bremner at unb.ca
bremner at unb.ca
Tue Nov 21 12:57:09 EST 2006
There seems to be some internal disagreement about how strict the
C++ standard compliance checking should be.
The following is true in the versions of Cgl and BuildTools checked
out today from svn via SYMPHONY/stable/5.1.
From the Externals file:
BuildTools https://projects.coin-or.org/svn/BuildTools/stable/0.5
CoinUtils https://projects.coin-or.org/svn/CoinUtils/stable/1.0/CoinUtils
In BuildTools/coin.m4, cxx_warn_flags contains -pedantic-errors
In CoinUtils/src/CoinSignal.hpp, there are several usages of #warning
This causes gcc-4.1.1 on Solaris Intel to fail to compile
Clp/src/ClpSolve.cpp and report the #warning's as errors.
I would recommend either replace -pedantic-error with pedantic, or
replace #warning with #error if that is what you want.
Of course, perhaps the CoinSignal should recognize gcc/Solaris-intel,
but that is a different question.
David
-------------- next part --------------
David Bremner Associate Professor, UNB Computer Science
bremner at unb.ca Cross Appointment, UNB Mathematics
+1 (506) 447 3300 Atlantic Scientific Director, MITACS NCE
http://www.cs.unb.ca/~bremner http://www.mitacs.ca
More information about the Coin-discuss
mailing list