Re: parse error before `throw'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18 January 2011 22:27,  <david.hagood@xxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux