www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000241

When Created: 07/26/1998 14:32:28
Against DJGPP version: 2.01
By whom: rasputin_@usa.net
Abstract: Parse error declaring a class
Whenever i try to declare a class in 2.01 my compiler gives me a parse error.  I 
know that it's because of my class decleration because the parse error always comes after
the "class" keyword.

Note added: 07/27/1998 15:51:11
By whom: broeker@physik.rwth-aachen.de
With an extremely high probability, you simply forgot that C++ and
C are different languages, and that gcc needs to be informed which of
the two a given source file is in. This is done by giving it the correct
*file name extension*. Calling the C++ source 'foo.cc' instead of 'foo.c'
should easily fix the problem.

Closed on 04/13/1999 06:00:26: Usage error, not a bug.
By whom: eliz@is.elta.co.il



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