[Coin-discuss] -pedantic-errors and compiling for x86-64 Windows with gcc

Kish Shen kisshen at cisco.com
Tue Feb 24 12:31:51 EST 2009


Hi,

I am trying to build Cbc/Clp for 64 bit x86-64 Windows, using mingw-w64 
(the 64 bit version of mingw), which uses gcc (version 4.4.0) as the 
compiler.

I get the following error:

/../CoinUtils/src/CoinModelUseful2.cpp:1034: error: ISO C++ 1998 does 
not support 'long long'
make[2]: *** ../../../CoinUtils/src/CoinModelUseful2.cpp:949: error: ISO 
C++ 1998 does not support 'long long'
../../../CoinUtils/src/CoinModelUseful2.cpp:992: error: ISO C++ 1998 
does not support 'long long'
../../../CoinUtils/src/CoinModelUseful2.cpp:1033: error: ISO C++ 1998 
does not support 'long long'
../..[CoinModelUseful2.lo] Error 1

C/C++ for 64 bit Windows has long that are 32 bit in size, so when you 
want an integer type that is word size (64 bit), I cannot see how you 
could avoid using long long (or the MS specific __int64, for older MSVC).

The error seem to be due to the -pedandic-errors flag given to gcc. I am
working around this problem by calling configure with
ADD_CXXFLAGS=-Wno-long-long and ADD_CFLAGS=-Wno-long-long.
Perhaps this should be incorporated into the configure files, or is 
there a better way to work around this problem?

Cheers,

Kish

-- 
This e-mail may contain confidential and privileged material for the
sole use of the intended recipient. Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact
the sender by reply e-mail and delete all copies of this message.
Cisco Systems Limited (Company Number: 02558939), is registered in
England and Wales with its registered office at 1 Callaghan Square,
Cardiff, South Glamorgan CF10 5BT.




More information about the Coin-discuss mailing list