Hi all, I am sure this question has been discussed many times... but once more
I got a code written in C, it makes use of the type: long long int code compiles fine with gcc, I am using gcc version 4.1.2 20070626 I would like however to compile the code with g++ believing it is a more strict compiler and since I feel more used to c++ code. Anyway... one of the things the compiler was complaining is the use of the "long long int" type. For example at some point there was the line: long long int slot_pattern = 0ll; Ok I found that C++ does not yet support this type, however adding the -Wno-long-long flag in my ccflags: -pedantic -g -D_FILE_OFFSET_BITS=64 -Wno-long-long -fPIC the code compiles fine in a 64 bit machine but in a 32 bit machine I get the following error: error: integer constant is too large for 'long' type Now my questions are: 1) The fact that it compiles in the 64 bit machine does it mean that it actually uses correctly the long long int type? 2) How can one solve the problem on the 32 bit machine. Thanks!
