#32450 - Jau - Thu Dec 23, 2004 12:54 am
What is wrong here?
The complier gives me the following error message
In file included from enemic.cpp:1:
enemic.h:7: error: parse error before `{' token
I have another file where there is another class that inherits from Personatge and it doesn't give me any error. Why? Can't I have two derived classes from the same class?
Code: |
#include "mygba.h" #ifndef _ENEMIC_H_ #define _ENEMIC_H_ class Enemic: public Personatge { public: s32 x, y; s32 vx, vy; s32 ax, ay; u8 tocaTerra; u8 colisioDreta; u8 colisioEsq; Enemic(); ~Enemic(); }; #endif |
The complier gives me the following error message
In file included from enemic.cpp:1:
enemic.h:7: error: parse error before `{' token
I have another file where there is another class that inherits from Personatge and it doesn't give me any error. Why? Can't I have two derived classes from the same class?