This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: parse error before `throw'


On 18 January 2011 22:27,  <david.hagood@gmail.com> wrote:
>> ?Hello
>>> /bin/nice -10 gcc -DELCOR? -DSUPPORT_PBR -DLINUX -gstabs+ -static
> ? ? ? ? ? ? ? ? ^^^
>
>>> ???????????????? from Tools/tools_all.cpp:128:
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^
>
> You are attempting to compile a C++ file as though it were C.

I don't think that's the problem, in the absence of a '-x lang' option
the gcc driver will infer the language from the file extension, see
http://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html

Using 'gcc' to compile C++ works fine, although it doesn't link to
libstdc++ by default, but that is not the problem here.


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