<br><font size=2 face="sans-serif">swap renamed as CoinSwap and moved to
coinHelperFunctions.hpp.</font>
<br>
<br><font size=2 face="sans-serif">Will be in cvs as soon as I run tests.</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>Ted Ralphs <tkralphs@lehigh.edu></b>
</font>
<br><font size=1 face="sans-serif">Sent by: coin-discuss-admin@www-124.southbury.usf.ibm.com</font>
<p><font size=1 face="sans-serif">11/01/2004 02:28 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
coin-discuss</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-discuss@www-124.southbury.usf.ibm.com</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] Problems compiling
Coin utilities with gcc 2.95 and 2.96</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>I just discovered that the Coin utility library does
not compile with <br>
gcc versions 2.95 or 2.96 (Redhat). I installed version 3.4.2 (the
<br>
latest release) and it does compile with that one. I'm not sure about <br>
versions in between. The problem is a name conflict with the declaration
<br>
of the STL algorithm "swap." CoinPresolveMatrix.hpp also declares
a swap <br>
method. I'm not sure exactly why it compiles in later version of gcc,
<br>
since this still appears to be a conflict. The error message is <br>
appended below.<br>
<br>
I don't know exactly what versions of gcc we intend to support, but in
<br>
any case, we should probably avoid conflicts with names that are used in
<br>
the STL. It probably makes sense to change the name of the swap method
<br>
in CoinPostsolveMatrix.hpp to something else.<br>
<br>
Cheers,<br>
<br>
Ted<br>
<br>
==================================================================<br>
<br>
In file included from CoinPostsolveMatrix.cpp:10:<br>
include/CoinPresolveMatrix.hpp:1642: redefinition of `template <class
T> <br>
void swap(T &, T &)'<br>
/usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_algobase.h:76:
<br>
`template <class _Tp> void swap(_Tp &, _Tp &)' previously
declared here<br>
include/CoinPresolveMatrix.hpp:1642: redefinition of `void swap(T &,
T &)'<br>
/usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../include/g++-3/stl_algobase.h:76:
<br>
`void swap(_Tp &, _Tp &)' previously defined here<br>
make[1]: *** [Linux-g/CoinPostsolveMatrix.o] Error 1<br>
make[1]: Leaving directory `/home2/tkr/COIN/Coin'<br>
make: *** [install] Error 2<br>
<br>
-- <br>
Dr. Ted Ralphs<br>
Assistant Professor<br>
Industrial and Systems Engineering<br>
Lehigh University<br>
(610)758-4784<br>
tkralphs@lehigh.edu<br>
www.lehigh.edu/~tkr2<br>
<br>
"An optimist is someone who thinks <br>
'It doesn't get any better than this.'<br>
A pessimist is someone who's afraid that's true."<br>
<br>
<br>
_______________________________________________<br>
Coin-discuss mailing list<br>
Coin-discuss@www-124.ibm.com<br>
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss<br>
</tt></font>
<br>