PDA

View Full Version : BYTE type is causing this three errors (maybe)



tirengarfio
03-01-2007, 02:51 AM
Hi,

when i save a 3ds model as a .cpp (Opengl) with Deep Exploration, 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?

Bob
03-01-2007, 03:21 AM
You solve it by making sure BYTE is defined properly somewhere BEFORE that line.

tirengarfio
03-01-2007, 11:56 PM
i solved it just adding #inlude "windows.h"