Error in class declaration
Posted: Fri Dec 18, 2009 3:58 pm
I am currently working on a application for the Nintendo DS. I got this header file:
line.h
But when compiling it, I get the following error:
Is this because normal class declaration is not supported on DevKitARM? Or what am I doing wrong?
Thanks in advance.
line.h
Code: Select all
class CLine
{
public:
int pos;
bool vert;
int speed;
unsigned short color;
CLine(void);
~CLine(void);
void draw();
void clear();
};
Code: Select all
Line.h(1): error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CLine'
Thanks in advance.