From: Weiqi Gao Newsgroups: comp.os.msdos.djgpp Subject: Re: Only Errors... :-( Date: Wed, 04 Aug 1999 19:15:35 -0500 Organization: CRL Network Services Message-ID: <37A8D7A7.74002ADE@a.crl.com> References: NNTP-Posting-Host: a116015.stl1.as.crl.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.36 i586) X-Accept-Language: en Lines: 56 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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