This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++ compiler problems
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: C++ compiler problems
- From: Erik Hofman <erik at ehofman dot com>
- Date: Tue, 19 Sep 2000 19:49:01 +0200
- Organization: Eric's Conspirency Secret Service
- Reply-To: erik at ehofman dot com
Hi all,
> c++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include -I../.. -I../../src
> -I/usr/local/FlightGear/include -I/usr/local/include -g -O2 -c
> cockpit.cxx
> cockpit.hxx:43: declaration does not declare anything
> cockpit.hxx:43: extraneous `int' ignored
> In file included from cockpit.cxx:53:
> cockpit.hxx:46: parse error before ';' token
> In file included from cockpit.cxx:53:
> cockpit.hxx:48: parse error before ';' token
> make[2]: *** [cockpit.o] Error 1
I've found the problem.
These variables are all defined in one of the header files (as far is i
know completely unrelated to the project) and declared as #define XXX
Since a defined variable can't ba treated as if it were a normal
variable the compiler starts to complain like above.
I think the problem is this: gcc includes about evry header file found
... !!
Erik Hofman