This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: parse error before `throw'
On 18 January 2011 23:01, Jonathan Wakely wrote:
> 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.
>
Actually this is the relevant page from the manual:
http://gcc.gnu.org/onlinedocs/gcc/Invoking-G_002b_002b.html