<div dir="ltr"><div><div><div><div><div>This is a problem with CoinUtils, which I fixed in the latest release. I didn't make a new release of Cbc that incorporates the CoinUtils fix yet, since I didn't expect anyone to find the problem so fast :).<br><br></div>To fix, just update to the latest release of CoinUtils by going into the CoinUtils directory of your source tree and doing<br><br></div>svn switch <a href="https://projects.coin-or.org/svn/CoinUtils/releases/2.10.5">https://projects.coin-or.org/svn/CoinUtils/releases/2.10.5</a><br><br></div>That should fix the problem until there is a new release of Cbc.<br><br></div>Cheers,<br><br></div>Ted<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 15, 2015 at 10:47 PM, Noli Sicad <span dir="ltr"><<a href="mailto:nsicad@gmail.com" target="_blank">nsicad@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi John,<br>
<br>
I got problem (i.e. errors) in compiling CBC 2.9.3 and trunk as well.<br>
<br>
Here's the errors (below).<br>
<br>
Regards, Noli<br>
<br>
~~~~~~~~<br>
<br>
Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-DCOIN_HAS_CLP -arch x86_64 -DCLP_BUILD -MT ClpSimplexNonlinear.lo -MD<br>
-MP -MF .deps/ClpSimplexNonlinear.Tpo -c ClpSimplexNonlinear.cpp -o<br>
ClpSimplexNonlinear.o<br>
ClpSimplexNonlinear.cpp:1528:45: warning: use of logical '&&' with<br>
constant operand [-Wconstant-logical-operand]<br>
if (numberNonBasic && 0) {<br>
^ ~<br>
ClpSimplexNonlinear.cpp:1528:45: note: use '&' for a bitwise operation<br>
if (numberNonBasic && 0) {<br>
^~<br>
&<br>
ClpSimplexNonlinear.cpp:1528:45: note: remove constant to silence this warning<br>
if (numberNonBasic && 0) {<br>
~^~~~<br>
1 warning generated.<br>
if /bin/sh ../../libtool --tag=CXX --mode=compile clang++<br>
-DHAVE_CONFIG_H -I. -I`echo .`<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/CoinUtils/src<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-DCOIN_HAS_CLP -arch x86_64 -DCLP_BUILD -MT<br>
ClpSimplexOther.lo -MD -MP -MF ".deps/ClpSimplexOther.Tpo" -c -o<br>
ClpSimplexOther.lo ClpSimplexOther.cpp; \<br>
then mv -f ".deps/ClpSimplexOther.Tpo" ".deps/ClpSimplexOther.Plo";<br>
else rm -f ".deps/ClpSimplexOther.Tpo"; exit 1; fi<br>
clang++ -DHAVE_CONFIG_H -I. -I.<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/CoinUtils/src<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-DCOIN_HAS_CLP -arch x86_64 -DCLP_BUILD -MT ClpSimplexOther.lo -MD -MP<br>
-MF .deps/ClpSimplexOther.Tpo -c ClpSimplexOther.cpp -o<br>
ClpSimplexOther.o<br>
ClpSimplexOther.cpp:10043:50: warning: operator '?:' has lower<br>
precedence than '+'; '+' will be evaluated first [-Wparentheses]<br>
iColumn,length+(jRowLower<0||jRowUpper<0) ? 1 : 2,<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^<br>
ClpSimplexOther.cpp:10043:50: note: place parentheses around the '+'<br>
expression to silence this warning<br>
iColumn,length+(jRowLower<0||jRowUpper<0) ? 1 : 2,<br>
^<br>
( )<br>
ClpSimplexOther.cpp:10043:50: note: place parentheses around the '?:'<br>
expression to evaluate it first<br>
iColumn,length+(jRowLower<0||jRowUpper<0) ? 1 : 2,<br>
^<br>
( )<br>
1 warning generated.<br>
if /bin/sh ../../libtool --tag=CXX --mode=compile clang++<br>
-DHAVE_CONFIG_H -I. -I`echo .`<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/CoinUtils/src<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-DCOIN_HAS_CLP -arch x86_64 -DCLP_BUILD -MT<br>
ClpSimplexPrimal.lo -MD -MP -MF ".deps/ClpSimplexPrimal.Tpo" -c -o<br>
ClpSimplexPrimal.lo ClpSimplexPrimal.cpp; \<br>
then mv -f ".deps/ClpSimplexPrimal.Tpo" ".deps/ClpSimplexPrimal.Plo";<br>
else rm -f ".deps/ClpSimplexPrimal.Tpo"; exit 1; fi<br>
clang++ -DHAVE_CONFIG_H -I. -I.<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/CoinUtils/src<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-DCOIN_HAS_CLP -arch x86_64 -DCLP_BUILD -MT ClpSimplexPrimal.lo -MD<br>
-MP -MF .deps/ClpSimplexPrimal.Tpo -c ClpSimplexPrimal.cpp -o<br>
ClpSimplexPrimal.o<br>
if /bin/sh ../../libtool --tag=CXX --mode=compile clang++<br>
-DHAVE_CONFIG_H -I. -I`echo .`<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/CoinUtils/src<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-DCOIN_HAS_CLP -arch x86_64 -DCLP_BUILD -MT ClpSolve.lo -MD<br>
-MP -MF ".deps/ClpSolve.Tpo" -c -o ClpSolve.lo ClpSolve.cpp; \<br>
then mv -f ".deps/ClpSolve.Tpo" ".deps/ClpSolve.Plo"; else rm -f<br>
".deps/ClpSolve.Tpo"; exit 1; fi<br>
clang++ -DHAVE_CONFIG_H -I. -I.<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/CoinUtils/src<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/include<br>
-I/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/ThirdParty/Glpk/glpk/src/amd<br>
-DCOIN_HAS_CLP -arch x86_64 -DCLP_BUILD -MT ClpSolve.lo -MD -MP -MF<br>
.deps/ClpSolve.Tpo -c ClpSolve.cpp -o ClpSolve.o<br>
In file included from ClpSolve.cpp:360:<br>
/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/CoinUtils/src/CoinSignal.hpp:99:21:<br>
error: C++ requires a type specifier for all declarations<br>
typedef decltype(SIG_DFL) CoinSighandler_t;<br>
^~~~~~~<br>
/usr/include/sys/signal.h:130:19: note: expanded from macro 'SIG_DFL'<br>
#define SIG_DFL (void (*)(int))0<br>
~^<br>
In file included from ClpSolve.cpp:360:<br>
/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/CoinUtils/src/CoinSignal.hpp:99:21:<br>
error: expected ')'<br>
typedef decltype(SIG_DFL) CoinSighandler_t;<br>
^<br>
/usr/include/sys/signal.h:130:33: note: expanded from macro 'SIG_DFL'<br>
#define SIG_DFL (void (*)(int))0<br>
^<br>
/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/CoinUtils/src/CoinSignal.hpp:99:20:<br>
note: to match this '('<br>
typedef decltype(SIG_DFL) CoinSighandler_t;<br>
^<br>
/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/CoinUtils/src/CoinSignal.hpp:99:12:<br>
error: C++ requires a type specifier for all declarations<br>
typedef decltype(SIG_DFL) CoinSighandler_t;<br>
~~~~~~~ ^<br>
/Users/nsicad/Documents/A_CBC/cbc_293/cbc_2.9.3/CoinUtils/src/CoinSignal.hpp:99:29:<br>
error: expected ';' after top level declarator<br>
typedef decltype(SIG_DFL) CoinSighandler_t;<br>
^<br>
;<br>
ClpSolve.cpp:898:6: error: use of undeclared identifier 'CoinSighandler_t'<br>
CoinSighandler_t saveSignal = static_cast<CoinSighandler_t> (0);<br>
^<br>
ClpSolve.cpp:902:11: error: use of undeclared identifier 'saveSignal'<br>
saveSignal = signal(SIGINT, signal_handler);<br>
^<br>
ClpSolve.cpp:3707:26: error: use of undeclared identifier 'saveSignal'<br>
signal(SIGINT, saveSignal);<br>
^<br>
7 errors generated.<br>
make[3]: *** [ClpSolve.lo] Error 1<br>
make[2]: *** [all] Error 2<br>
make[1]: *** [all-recursive] Error 1<br>
make: *** [all-recursive] Error 1<br>
Nolis-MacBook-Pro:cbc_2.9.3 nsicad$<br>
_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Dr. Ted Ralphs<br>Professor, Lehigh University<br>(610) 628-1280<br>ted 'at' lehigh 'dot' edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div>
</div>