[Coin-discuss] Problem compiling CoinMessageHandler.hpp under MS VC++ 6.0
Stefano Gliozzi
stefano_gliozzi at it.ibm.com
Fri Dec 19 04:54:32 EST 2003
I've tried compiling the Coin lib with the source aligned this morning
with CVS. I got the message:
and go the message:
c:\coin\coin\include\coinmessagehandler.hpp(276) : error C2632: 'long'
followed by 'long' is illegal
c:\coin\coin\include\coinmessagehandler.hpp(276) : error C2535: 'class
CoinMessageHandler &__thiscall CoinMessageHandler::operator <<(long)' :
member function already defined or declared
c:\coin\coin\include\coinmessagehandler.hpp(275) : see declaration of
'<<'
Basically MS VC++ V6.0 does not understand the c type "long long". As far
as I remember MS VC6.0 has the native type _int64 which is to be used
instead of "long long".Actually I changed row 276 of
coinmessagehandler.hpp in:
CoinMessageHandler & operator<< (_int64 longvalue);
and this fixes the compilation problem.
Now, how can we maintain the compatibility with MS VC++6.0 ?
Best Regards,
Stefano
Managing Consultant
IBM Business Consulting Services
Ph. +39-06-596-65477, Mobile +39-335-7389709
Fax. +39-06-596-65477
e-mail: stefano_gliozzi @ it.ibm.com
mail: Via Sciangai, 53 - 00144 Roma - ITALY
http://stefano-gliozzi.it.userv.ibm.com/homepage.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20031219/6d2ea9aa/attachment.html>
More information about the Coin-discuss
mailing list