<br><font size=2 face="sans-serif">Ted,</font>
<br>
<br><font size=2 face="sans-serif">Mixing inline and virtual methods sounds
a recipe for disaster.</font>
<br>
<br><font size=2 face="sans-serif">I think putting</font>
<br>
<br><font size=2 face="sans-serif">#if __GNUC__ !=2 &nbsp; &nbsp; or something
like that round using would work for now</font>
<br>
<br><font size=2 face="sans-serif">John</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Ted Ralphs &lt;tkralphs@lehigh.edu&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">02/18/2005 01:54 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
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">Discussions about open source
software for Operations Research &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] Compiling
Osi with gcc 2.95.3</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Osi currently does not compile with gcc 2.95.3 because
of the following <br>
lines added to OciColCut.hpp by Lou in version 1.5:<br>
<br>
calvin: ~/COIN/Osi/include&gt; cvs diff -r 1.4 -r 1.5 OsiColCut.hpp<br>
Index: OsiColCut.hpp<br>
===================================================================<br>
RCS file: /home/coin/coincvs/COIN/Osi/include/OsiColCut.hpp,v<br>
retrieving revision 1.4<br>
retrieving revision 1.5<br>
diff -r1.4 -r1.5<br>
61a62<br>
 &gt; &nbsp; using OsiCut::operator== ;<br>
65a67,68<br>
 &gt;<br>
 &gt; &nbsp; using OsiCut::operator!= ;<br>
<br>
The same was done to OsiRowCut.hpp. The log for this revision says <br>
&quot;Added `using' dec'ls for proper overload resolution.&quot; Deleting
these <br>
lines allows it to compile.<br>
<br>
Anyone know the reason for the change and why 2.95.3 complains about it?
<br>
Is there a solution that will work for earlier and later versions of <br>
gcc? Here is the error that occurs before deleting the lines:<br>
<br>
Compiling OsiRowCut.cpp<br>
In file included from OsiRowCut.cpp:13:<br>
include/OsiRowCut.hpp:157: cannot adjust access to `bool <br>
OsiCut::operator ==(const OsiCut &amp;) const' in `class OsiRowCut'<br>
include/OsiRowCut.hpp:75: &nbsp; because of local method `bool <br>
OsiRowCut::operator ==(const OsiRowCut &amp;) const' with same name<br>
include/OsiRowCut.hpp:157: cannot adjust access to `bool <br>
OsiCut::operator !=(const OsiCut &amp;) const' in `class OsiRowCut'<br>
include/OsiRowCut.hpp:79: &nbsp; because of local method `bool <br>
OsiRowCut::operator !=(const OsiRowCut &amp;) const' with same name<br>
make[2]: *** [Linux-g/OsiRowCut.o] Error 1<br>
make[2]: Leaving directory `/home2/tkr/COIN/Osi'<br>
make[1]: *** [library] Error 2<br>
make[1]: Leaving directory `/home2/tkr/COIN/Osi'<br>
make: *** [libOsi] Error 2<br>
<br>
Cheers,<br>
<br>
Ted<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>
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>