views:

264

answers:

2

I'm encountering this error while compiling some old VC++ 6.0 source code.

error C2632: 'long' followed by 'long' is illegal

There's a part of the code that declares a long long int variable which caused the error. Does anybody know how I can fix this error compiling it in VC++ 6.0? I've searched around and I've read that this data type is not yet supported in this version. However, this is an old code and I'm sure this was compiled in VC++ 6.0.

+1  A: 

AFAIK Visual C++ 6.0 only supports __int64 (Microsoft's own type definition for 64-bit integers). long long is a standard type from C99, which 6.0 doesn't support.

Eli Bendersky
+1  A: 

I don't think VC6 supports the long long data type, but if you have the necessary typedefs already you could replace "long long" with "__int64" with a minimum of hassle.

ChrisV