delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/13/20:30:40

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help needed with multiple sources and errors
Date: Thu, 13 May 1999 19:18:59 -0400
Organization: BrunNet
Lines: 40
Message-ID: <373B5DE3.2FD432CA@unb.ca>
References: <MPG DOT 11a3a5ecc3f5324898ab3d AT news DOT freeserve DOT net>
NNTP-Posting-Host: ftnts3c15.brunnet.net
Mime-Version: 1.0
X-Mailer: Mozilla 4.51 [en] (Win95; U)
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

"Andrew R. Gillett" wrote:

> music.h:
>
> class musicsystem_class
> {
> public:
>
>     JGMOD *my_module;
>
>     void init (void);
>     void play (char filename[32]);
>     void stop (void);
>     void close (void);
> };
>
> First part of music.cpp:
>
> void musicsystem::init (void)
> {
> ...rest of music.cpp
>
> I get a huge list of errors when I try to compile music.cpp, starting
> with:
>
> music.cpp:11: syntax error before '::'

    In the .h file you are calling the class "musicsystem_class" and in the
.cpp file you are calling it "musicsystem".  Those are 2 different names,
that's where your error is coming from.

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT HotMail DOT com
          ICQ: 32959047




- Raw text -


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