[Coin-discuss] Compiling Osi with gcc 2.95.3
John J Forrest
jjforre at us.ibm.com
Fri Feb 18 14:12:00 EST 2005
Ted,
Mixing inline and virtual methods sounds a recipe for disaster.
I think putting
#if __GNUC__ !=2 or something like that round using would work for now
John
Ted Ralphs <tkralphs at lehigh.edu>
Sent by: coin-discuss-bounces at list.coin-or.org
02/18/2005 01:54 PM
Please respond to
Discussions about open source software for Operations Research
To
Discussions about open source software for Operations Research
<coin-discuss at list.coin-or.org>
cc
Subject
[Coin-discuss] Compiling Osi with gcc 2.95.3
Osi currently does not compile with gcc 2.95.3 because of the following
lines added to OciColCut.hpp by Lou in version 1.5:
calvin: ~/COIN/Osi/include> cvs diff -r 1.4 -r 1.5 OsiColCut.hpp
Index: OsiColCut.hpp
===================================================================
RCS file: /home/coin/coincvs/COIN/Osi/include/OsiColCut.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -r1.4 -r1.5
61a62
> using OsiCut::operator== ;
65a67,68
>
> using OsiCut::operator!= ;
The same was done to OsiRowCut.hpp. The log for this revision says
"Added `using' dec'ls for proper overload resolution." Deleting these
lines allows it to compile.
Anyone know the reason for the change and why 2.95.3 complains about it?
Is there a solution that will work for earlier and later versions of
gcc? Here is the error that occurs before deleting the lines:
Compiling OsiRowCut.cpp
In file included from OsiRowCut.cpp:13:
include/OsiRowCut.hpp:157: cannot adjust access to `bool
OsiCut::operator ==(const OsiCut &) const' in `class OsiRowCut'
include/OsiRowCut.hpp:75: because of local method `bool
OsiRowCut::operator ==(const OsiRowCut &) const' with same name
include/OsiRowCut.hpp:157: cannot adjust access to `bool
OsiCut::operator !=(const OsiCut &) const' in `class OsiRowCut'
include/OsiRowCut.hpp:79: because of local method `bool
OsiRowCut::operator !=(const OsiRowCut &) const' with same name
make[2]: *** [Linux-g/OsiRowCut.o] Error 1
make[2]: Leaving directory `/home2/tkr/COIN/Osi'
make[1]: *** [library] Error 2
make[1]: Leaving directory `/home2/tkr/COIN/Osi'
make: *** [libOsi] Error 2
Cheers,
Ted
--
Dr. Ted Ralphs
Assistant Professor
Industrial and Systems Engineering
Lehigh University
(610)758-4784
tkralphs at lehigh.edu
www.lehigh.edu/~tkr2
_______________________________________________
Coin-discuss mailing list
Coin-discuss at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/coin-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20050218/20f4ec65/attachment.html>
More information about the Coin-discuss
mailing list