Hi all,
I'm using Open2X and SDL to just play around at the moment, i have a simple file that has an entry point, sets up SDL and then quits. works fine.
However if i add a basic class to the file just above main entry point, such as:
class testClass{
int a;
int b;
};
i get 3 errors:
Syntax error before testClass
Error before '{' token
Error before '}' token
do i need to change something with the make file, i.e to use g++ instead of gcc, or change a gcc switch, or am i missing something else?
many thanks
I'm using Open2X and SDL to just play around at the moment, i have a simple file that has an entry point, sets up SDL and then quits. works fine.
However if i add a basic class to the file just above main entry point, such as:
class testClass{
int a;
int b;
};
i get 3 errors:
Syntax error before testClass
Error before '{' token
Error before '}' token
do i need to change something with the make file, i.e to use g++ instead of gcc, or change a gcc switch, or am i missing something else?
many thanks