BYTE type is causing this three errors (maybe)
Hi,
When i save a model as a .cpp (Opengl) it writes this line:
static BYTE face_indicies[12][9]
but the compiler give me these three errors in that line:
error C2146: syntax error : missing ';' before identifier 'face_indicies'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I think it doesnt recognize the type BYTE...How can i solve it?
BYTE is a microsoft defined type, and is defined in windef.h
Either include that file, usually included via windows.h or
typedef unsigned char BYTE;
Either include that file, usually included via windows.h or
typedef unsigned char BYTE;
"static BYTE face_indicies[12][9]
but the compiler give me these three errors in that line:
error C2146: syntax error : missing ';' before identifier 'face_indicies'"
...
try
static BYTE face_indicies[12][9] ;
but the compiler give me these three errors in that line:
error C2146: syntax error : missing ';' before identifier 'face_indicies'"
...
try
static BYTE face_indicies[12][9] ;
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement