This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Error
- From: Jan Engelhardt <jengelh at medozas dot de>
- To: fimer <yuanhao12 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 26 Dec 2008 19:40:58 +0100 (CET)
- Subject: Re: GCC Error
- References: <20528286.post@talk.nabble.com> <m3ljvirinw.fsf@google.com> <21172193.post@talk.nabble.com>
On Friday 2008-12-26 07:29, fimer wrote:
>>
>> There is little we can do to help you with so little information.
>>
>> That said, the most likely problem is that the code is doing something
>> like this:
>>
>> class C { void C::fn(); }
>>
>> That is invalid C++ syntax, but older versions of gcc--before gcc 3.4,
>> I think--used to accept it. The "C::" must be omitted.
>
>If it is, can this also be resolved by adding any option to compile command?
Can't you just fix the code?