home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18469 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.8 KB  |  50 lines

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