This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ compiler problems


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]