This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Error
- From: Ian Lance Taylor <iant at google dot com>
- To: Denisius <fanatica0 at hotmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 16 Nov 2008 22:05:55 -0800
- Subject: Re: GCC Error
- References: <20528286.post@talk.nabble.com>
Denisius <fanatica0@hotmail.com> writes:
> Whenever I try to compile I get the following error:
>
> "In file included from act_comm.cpp:26:
> lockers.h:81: error: extra qualification Ãlockers_object::Ã on member
> Ãget_next_free_locker_numberÃ"
>
> I am using GCC 4.3.
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.
Ian