<div dir="ltr"><div><div><div><div><div>This is a problem with CoinUtils, which I fixed in the latest release. I didn&#39;t make a new release of Cbc that incorporates the CoinUtils fix yet, since I didn&#39;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">&lt;<a href="mailto:nsicad@gmail.com" target="_blank">nsicad@gmail.com</a>&gt;</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&#39;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 &#39;&amp;&amp;&#39; with<br>
constant operand [-Wconstant-logical-operand]<br>
                         if (numberNonBasic &amp;&amp; 0) {<br>
                                            ^  ~<br>
ClpSimplexNonlinear.cpp:1528:45: note: use &#39;&amp;&#39; for a bitwise operation<br>
                         if (numberNonBasic &amp;&amp; 0) {<br>
                                            ^~<br>
                                            &amp;<br>
ClpSimplexNonlinear.cpp:1528:45: note: remove constant to silence this warning<br>
                         if (numberNonBasic &amp;&amp; 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 &quot;.deps/ClpSimplexOther.Tpo&quot; -c -o<br>
ClpSimplexOther.lo ClpSimplexOther.cpp; \<br>
        then mv -f &quot;.deps/ClpSimplexOther.Tpo&quot; &quot;.deps/ClpSimplexOther.Plo&quot;;<br>
else rm -f &quot;.deps/ClpSimplexOther.Tpo&quot;; 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 &#39;?:&#39; has lower<br>
precedence than &#39;+&#39;; &#39;+&#39; will be evaluated first [-Wparentheses]<br>
                     iColumn,length+(jRowLower&lt;0||jRowUpper&lt;0) ? 1 : 2,<br>
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^<br>
ClpSimplexOther.cpp:10043:50: note: place parentheses around the &#39;+&#39;<br>
expression to silence this warning<br>
                     iColumn,length+(jRowLower&lt;0||jRowUpper&lt;0) ? 1 : 2,<br>
                                                               ^<br>
                             (                                )<br>
ClpSimplexOther.cpp:10043:50: note: place parentheses around the &#39;?:&#39;<br>
expression to evaluate it first<br>
                     iColumn,length+(jRowLower&lt;0||jRowUpper&lt;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 &quot;.deps/ClpSimplexPrimal.Tpo&quot; -c -o<br>
ClpSimplexPrimal.lo ClpSimplexPrimal.cpp; \<br>
        then mv -f &quot;.deps/ClpSimplexPrimal.Tpo&quot; &quot;.deps/ClpSimplexPrimal.Plo&quot;;<br>
else rm -f &quot;.deps/ClpSimplexPrimal.Tpo&quot;; 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 &quot;.deps/ClpSolve.Tpo&quot; -c -o ClpSolve.lo ClpSolve.cpp; \<br>
        then mv -f &quot;.deps/ClpSolve.Tpo&quot; &quot;.deps/ClpSolve.Plo&quot;; else rm -f<br>
&quot;.deps/ClpSolve.Tpo&quot;; 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 &#39;SIG_DFL&#39;<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 &#39;)&#39;<br>
   typedef decltype(SIG_DFL) CoinSighandler_t;<br>
                    ^<br>
/usr/include/sys/signal.h:130:33: note: expanded from macro &#39;SIG_DFL&#39;<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 &#39;(&#39;<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 &#39;;&#39; after top level declarator<br>
   typedef decltype(SIG_DFL) CoinSighandler_t;<br>
                            ^<br>
                            ;<br>
ClpSolve.cpp:898:6: error: use of undeclared identifier &#39;CoinSighandler_t&#39;<br>
     CoinSighandler_t saveSignal = static_cast&lt;CoinSighandler_t&gt; (0);<br>
     ^<br>
ClpSolve.cpp:902:11: error: use of undeclared identifier &#39;saveSignal&#39;<br>
          saveSignal = signal(SIGINT, signal_handler);<br>
          ^<br>
ClpSolve.cpp:3707:26: error: use of undeclared identifier &#39;saveSignal&#39;<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 &#39;at&#39; lehigh &#39;dot&#39; edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div>
</div>