home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!well!comeau
- From: comeau@csanta.attmail.com (Greg Comeau)
- Subject: Re: C++ novice quesions
- Message-ID: <C0oA3B.LAC@well.sf.ca.us>
- Originator: comeau@well.sf.ca.us
- Sender: news@well.sf.ca.us
- Reply-To: comeau@csanta.attmail.com (Greg Comeau)
- Organization: Comeau Computing
- References: <johnv.043z@acix.DIALix.oz.au>
- Date: Mon, 11 Jan 1993 04:35:35 GMT
- Lines: 36
-
- In article <johnv.043z@acix.DIALix.oz.au> johnv@acix.DIALix.oz.au (John Verhoeven) writes:
- >I'm trying to learn C++ using the book 'C++ Primer, Stanley Lippman, 2nd
- >Edition' and have typed in one of the examples from the book.
- >
- >When I try and compile it I get several errors.
- >
- >Does anybody know where I can get explanations for the error messages
- >put out by GCC?
- >
- >Here is the types of errors I am getting:
- >
- >intarray.cc:5: `IntArray::IntArray (int (= ArraySize ))' is already
- > defined in aggregate scope
-
- This one smells to me like you are redefining IntArray::IntArry(int)
- (it's saying it was defined inline with the class already). That's
- my guess at least.
-
- >intarray.cc:45: parse error at end of input
-
- My guess here is that it hit EOF and still expected something from the code.
- Perhaps a semi-colon at the end of a class?
-
- >What level of C++ does gcc conform to?
-
- That's a hardish question to answer as it is g++ we're talking about
- and although it has 2.0, 2.1, and 3.0 additions to it, some are missing,
- they don't claim any specific spec conformance, and they have a number of
- non-standard/portable extensions. And so on.
-
- - Greg
- --
- Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418
- Producers of Comeau C++ 3.0/3.0.1 With Templates
- Here:attmail.com!csanta!comeau / BIX:comeau / CIS:72331,3421
- Voice:718-945-0009 / Fax:718-441-2310 / Prodigy: tshp50a
-