cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/04/22:50:51

From: Hyper <jimb AT snip DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Only Errors... :-(
Date: Wed, 04 Aug 1999 16:35:54 -0400
Organization: None, very disorganized
Lines: 43
Message-ID: <37A8A42A.7B620B6@snip.net>
References: <e00q3.67$qv DOT 3117 AT news DOT tli DOT de>
NNTP-Posting-Host: harc2b131.snip.net
Mime-Version: 1.0
X-Mailer: Mozilla 4.61 [en] (Win98; I)
X-Accept-Language: en
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! :-(
> 
> 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!
> Yesterday there not this errors.
> 
i'm really new to programming (only did simple math programs, and stuff that
really has no point).  My best guess is this.  Since i'm new to this i don't
know, but i'd say the problem is your "class player" line.  It doesn't appear to
be a function (No () ), and it doesn't appear to be a variable.  is class a
function you have made or something?  please don't flame me for my ignorance,
i'm learning so i might be wrong

-- 
My heart goes out to the families of Gene Hart and Dimitri Tertyshny
Who both died tragically during the month of July, in two seperate instances
May both of your souls rest in peace
Personal page -- http://members.xoom.com/Hyper_Hands/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019