www.delorie.com/djgpp/bugs/show.cgi | search |
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.
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.
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |