Mail Archives: djgpp/1999/08/05/07:37:02
Amin Kharchi wrote:
>
> Hello!
>
> I need help:
> I have coded a CPP-File witch was compiled yesterday without errors. But
> today I wanted to compile it again... (RHIDE, DJGPP and Allegro-Lib) and now
> there are errors I don't understand and can't find! :-(
Two questions:
1. Are you absolutely sure that your C++ source file compiled without
errors yesterday?
2. What has changed in your C++ source since the last time it compiled
without errors?
> First the errors:
>
> Error: parse error before '{'
> Error: parse error before 'public:'
> Error: parse error before '}'
>
> And now the code:
>
> class Player
> {
> private:
> int lives;
>
> public:
> void move(void);
> };
>
> What is false??????? And there are much more errors... the compiler says
> that I can't call function draw_sprite() of the allegro-lib. But he don't
> say that he can't find it!
Since this snippet of your source looks OK, I suspect the fault lies
elsewhere. Do you define other classes in the same file? Are they
terminated with a semicolon just as this one does?
> Yesterday there not this errors.
Again, what changed?
> To test I have written another CPP-File with a class and a main()
> function... but there are no errors.
That means your DJGPP installation is correct.
> Must I re-install DJGPP, RHIDE and GCC??? :-(
No.
--
Weiqi Gao
weiqigao AT a DOT crl DOT com
- Raw text -