<br><font size=2 face="sans-serif">Edgardo,</font>
<br>
<br><font size=2 face="sans-serif">I have moved an #endif in CoinError.hpp
- does that help? &nbsp;(No errors on my gcc but I can see that VC might
get confused if it saw </font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; #if
(__GNUC_PREREQ (2,6))</font>
<br>
<br><font size=2 face="sans-serif">I have tidied code to get rid of some
unused variable warnings with -NDEBUG</font>
<br>
<br><font size=2 face="sans-serif">Uninitialized warnings seem to be compiler
mistake.</font>
<br>
<br><font size=2 face="sans-serif">John Forrest</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Edgardo Fuchs &lt;edgardo_fuchs@mi.cl&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: coin-discuss-bounces@list.coin-or.org</font>
<p><font size=1 face="sans-serif">07/12/2005 10:42 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
edgardo_fuchs and Discussions about open source software for Operations
Research &nbsp; &nbsp; &nbsp; &nbsp;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">COIN &lt;coin-discuss@list.coin-or.org&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">[Coin-discuss] NDEBUG &amp;
COIN_ASSERT</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>Dear COIN list,<br>
<br>
I compiled Coin, Clp, Osi and OsiClp, with both gcc and VC Toolkit.<br>
<br>
Both of them produce errors with NDEBUG &amp; COIN_ASSERT options.<br>
gcc produces a warning message with only NDEBUG option.<br>
VC Toolkit compiles without messages using only NDEBUG option.<br>
<br>
I included a text file with the compilation messages.<br>
<br>
Regards,<br>
Edgardo Fuchs<br>
</font>
<br><font size=3><tt>-- <br>
<br>
Edgardo Fuchs<br>
<br>
Santiago, Chile<br>
<br>
Tel: +56 (2) 435 0090<br>
Cel: +56 9837 8433<br>
</tt></font><font size=2><tt>gcc 3.4.4-1<br>
Eclipse IDE<br>
Win XP home<br>
<br>
Compiler options:<br>
-DNDEBUG -DCOIN_ASSERT -Wall -Wpointer-arith -Wcast-qual -Wwrite-strings
-Wconversion -pipe -O3<br>
<br>
<br>
Coin:<br>
====<br>
<br>
In file included from C:/cpp/eclipse/Coin/include/CoinHelperFunctions.hpp:13,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ../CoinBuild.cpp:16:<br>
C:/cpp/eclipse/Coin/include/CoinError.hpp:203:24: missing binary operator
before token &quot;(&quot;<br>
<br>
<br>
Clp:<br>
===<br>
<br>
In file included from C:/cpp/eclipse/Coin/include/CoinPackedMatrix.hpp:6,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from C:/cpp/eclipse/Clp/include/ClpMatrixBase.hpp:8,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from C:/cpp/eclipse/Clp/include/ClpModel.hpp:12,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from C:/cpp/eclipse/Clp/include/ClpInterior.hpp:19,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ../ClpCholeskyBase.cpp:9:<br>
C:/cpp/eclipse/Coin/include/CoinError.hpp:203:24: missing binary operator
before token &quot;(&quot;<br>
../ClpCholeskyBase.cpp: In member function `virtual int ClpCholeskyBase::symbolic()':<br>
../ClpCholeskyBase.cpp:1017: warning: 'sizeFactor' might be used uninitialized
in this function<br>
<br>
<br>
Building file: ../ClpModel.cpp<br>
g++ -DNDEBUG -DCOIN_ASSERT -IC:\cpp\eclipse\Clp\include -IC:\cpp\eclipse\Coin\include
-O3 -Wall -c -Wpointer-arith -Wcast-qual -Wwrite-strings -Wconversion -pipe
-oClpModel.o ../ClpModel.cpp<br>
In file included from C:/cpp/eclipse/Coin/include/CoinHelperFunctions.hpp:13,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ../ClpModel.cpp:14:<br>
C:/cpp/eclipse/Coin/include/CoinError.hpp:203:24: missing binary operator
before token &quot;(&quot;<br>
../ClpModel.cpp: In member function `void ClpModel::setRowBounds(int, double,
double)':<br>
../ClpModel.cpp:444: error: `__STRING' undeclared (first use this function)<br>
../ClpModel.cpp:444: error: (Each undeclared identifier is reported only
once for each function it appears in.)<br>
<br>
<br>
Osi:<br>
===<br>
<br>
In file included from C:/cpp/eclipse/Coin/include/CoinPackedVectorBase.hpp:13,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from C:/cpp/eclipse/Coin/include/CoinPackedVector.hpp:13,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from C:/cpp/eclipse/Osi/include/OsiColCut.hpp:8,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ../OsiColCut.cpp:8:<br>
C:/cpp/eclipse/Coin/include/CoinError.hpp:203:24: missing binary operator
before token &quot;(&quot;<br>
<br>
<br>
OsiClp:<br>
======<br>
<br>
In file included from C:/cpp/eclipse/Coin/include/CoinHelperFunctions.hpp:13,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from ../OsiClpSolverInterface.cpp:8:<br>
C:/cpp/eclipse/Coin/include/CoinError.hpp:203:24: missing binary operator
before token &quot;(&quot;<br>
../OsiClpSolverInterface.cpp: In member function `void OsiClpSolverInterface::setupForRepeatedUse(int,
int)':<br>
../OsiClpSolverInterface.cpp:525: warning: unused variable 'gotHint'<br>
../OsiClpSolverInterface.cpp: In member function `virtual void OsiClpSolverInterface::solveFromHotStart()':<br>
../OsiClpSolverInterface.cpp:931: warning: unused variable 'gotHint'<br>
../OsiClpSolverInterface.cpp:1010: error: `__STRING' undeclared (first
use this function)<br>
../OsiClpSolverInterface.cpp:1010: error: (Each undeclared identifier is
reported only once for each function it appears in.)<br>
../OsiClpSolverInterface.cpp: In member function `virtual void OsiClpSolverInterface::enableSimplexInterface(bool)':<br>
../OsiClpSolverInterface.cpp:2610: warning: unused variable 'returnCode'<br>
<br>
<br>
Clp without COIN_ASSERT option:<br>
==============================<br>
<br>
../ClpCholeskyBase.cpp: In member function `virtual int ClpCholeskyBase::symbolic()':<br>
../ClpCholeskyBase.cpp:1017: warning: 'sizeFactor' might be used uninitialized
in this function<br>
Finished building: ../ClpCholeskyBase.cpp<br>
<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_vector.h: In member
function `std::vector&lt;_Tp, _Alloc&gt;&amp; std::vector&lt;_Tp, _Alloc&gt;::operator=(const
std::vector&lt;_Tp, _Alloc&gt;&amp;) [with _Tp = std::string, _Alloc =
std::allocator&lt;std::string&gt;]':<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_vector.h:715: warning:
'__result' might be used uninitialized in this function<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:
In member function `void std::vector&lt;_Tp, _Alloc&gt;::_M_fill_insert(__gnu_cxx::__normal_iterator&lt;typename
_Alloc::pointer, std::vector&lt;_Tp, _Alloc&gt; &gt;, size_t, const _Tp&amp;)
[with _Tp = std::string, _Alloc = std::allocator&lt;std::string&gt;]':<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function<br>
../ClpModel.cpp: In member function `int ClpModel::readMps(const char*,
bool, bool)':<br>
../ClpModel.cpp:2209: warning: 'savePrefix' might be used uninitialized
in this function<br>
../ClpModel.cpp:2211: warning: 'time1' might be used uninitialized in this
function<br>
Finished building: ../ClpModel.cpp<br>
<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_vector.h: In member
function `std::vector&lt;_Tp, _Alloc&gt;&amp; std::vector&lt;_Tp, _Alloc&gt;::operator=(const
std::vector&lt;_Tp, _Alloc&gt;&amp;) [with _Tp = std::string, _Alloc =
std::allocator&lt;std::string&gt;]':<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_vector.h:715: warning:
'__result' might be used uninitialized in this function<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:
In member function `void std::vector&lt;_Tp, _Alloc&gt;::_M_fill_insert(__gnu_cxx::__normal_iterator&lt;typename
_Alloc::pointer, std::vector&lt;_Tp, _Alloc&gt; &gt;, size_t, const _Tp&amp;)
[with _Tp = std::string, _Alloc = std::allocator&lt;std::string&gt;]':<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function<br>
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82:
warning: '__cur' might be used uninitialized in this function<br>
Finished building: ../ClpSimplex.cpp<br>
<br>
<br>
// ============================================================================<br>
<br>
<br>
Visual C++ Toolkit 2003<br>
Code::Blocks IDE<br>
Win Xp home<br>
<br>
Compiler options:<br>
/nologo /W1 /GR /GX /O2 /YX /FD /c /D WIN32 /D NDEBUG /D COIN_ASSERT /D
_MBCS /D _LIB<br>
<br>
<br>
Coin:<br>
====<br>
<br>
CoinBuild.cpp<br>
c:\cpp\CoinVC\Coin\include\CoinError.hpp(203) : fatal error C1012: unmatched
parenthesis : missing ')'<br>
Process terminated with status 1 (0 minutes, 10 seconds)<br>
1 errors, 0 warnings<br>
<br>
<br>
Clp:<br>
===<br>
<br>
ClpCholeskyBase.cpp<br>
c:\cpp\CoinVC\Coin\include\CoinError.hpp(203) : fatal error C1012: unmatched
parenthesis : missing ')'<br>
Process terminated with status 1 (0 minutes, 1 seconds)<br>
1 errors, 0 warnings<br>
<br>
<br>
Osi:<br>
===<br>
<br>
OsiCut.cpp<br>
c:\cpp\CoinVC\Coin\include\CoinError.hpp(203) : fatal error C1012: unmatched
parenthesis : missing ')'<br>
Process terminated with status 1 (0 minutes, 2 seconds)<br>
1 errors, 0 warnings<br>
<br>
<br>
OsiClp:<br>
======<br>
<br>
OsiClpSolverInterface.cpp<br>
c:\cpp\CoinVC\Coin\include\CoinError.hpp(203) : fatal error C1012: unmatched
parenthesis : missing ')'<br>
Process terminated with status 1 (0 minutes, 1 seconds)<br>
1 errors, 0 warnings<br>
<br>
_______________________________________________<br>
Coin-discuss mailing list<br>
Coin-discuss@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-discuss<br>
</tt></font>
<br>