
12 Aug
2009
12 Aug
'09
8:47 a.m.
Hi Dmitry,
I'm using GCC 3.4.6, on Linux-64, compiling 32-bit binary (so int and long are of same size, and boost::int64_t is bigger than long).
gcc-4.3.3 and 4.4.0 compile this example fine.
For gcc 3.4.6, it compiles fine too when I compile 64-bit binary, but fails on 32 . This problem involves three types: int, long, and int64_t (long is in vector_c definition). Of course, if long and int64_t are same, the problem won't appear. For my system, the sizeofs of the types are: 32bit: int = long < int64_t (fail) 64bit: int < long = int64_t (ok) What about the system you've tried? Thanks, Maxim (to reply in private, please use FirstName.LastName at gmail.com)