-
Compilation Error
Hi,
I'm new to c programming language.
I trying to compile a project. but I get a compilation error.
||=== , Debug ===|
C:\Users\Windows\..\common\..\Windows\ostypes.h|57 |error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bit64'|
If this is a not a valid question or If I did not provide the right information please excuse me.
-
It would help if we could see a bit of the code you are referencing there.
Quzah.
-
typedef _int64 bit64;
[/B]typedef unsigned int bit32;
typedef unsigned short bit16;
typedef unsigned char bit8;
typedef bit32 HBA_HANDLE;
typedef bit32 agStatus_t;
typedef bit32 agBoolean;
the compiler points to the first line as error. I'm using code blocks to compile it. should I use any header file to get through this error?
-
_int64 is not a standard type. I think windows.h defines it, so perhaps you were expected to have that header file first (just based on your path anyway, that seems reasonable).
-
-
Try __int64 instead, or use long long if you can compile with respect to C99.
-
Do you have it included before this header?
Actually, upon review of the documentation, it appears that Microsoft's version is __int64, with two underscores.
You should be able to replace _int64 with "long long".
-
Great. It did work.
The _ _int64 keyword declares a new type, a 64-bit (8-byte) integer.
So this specific to only windows right?
-
-
That is definitely windows-only.