Code::Blocks

User forums => Help => Topic started by: Michael on June 11, 2006, 11:56:27 pm

Title: extra qualification error in sdk\cbeditor.cpp
Post by: Michael on June 11, 2006, 11:56:27 pm
Hello,

I have found an extra-qualification error in sdk\cbeditor.cpp:135:

Code: [Select]
cbEditorInternalData::~cbEditorInternalData()
{
}

Quote
sdk\cbeditor.cpp:135: error: extra qualification 'cbEditorInternalData::' on member 'cbEditorInternalData'

Best wishes,
Michael

PS.: I have quite forgotten... :)...C::B rev2544 & GCC 4.1.0
Title: Re: extra qualification error in sdk\cbeditor.cpp
Post by: Ceniza on June 12, 2006, 01:37:31 am
Fixed :)

I just hope killerbot don't release another nightly because of it like he did some time ago :P
Title: Re: extra qualification error in sdk\cbeditor.cpp
Post by: Michael on June 12, 2006, 10:58:05 am
Fixed :)

Thanks for the fast correction :). Anyway, this "issues" are only a problem with GCC >= 4.1.0. WIth GCC 4.0.3 --> no problems.

Best wishes,
Michael
Title: Re: extra qualification error in sdk\cbeditor.cpp
Post by: sethjackson on June 12, 2006, 01:49:57 pm
I have a small question. What is wrong with the extra qualification, and what is an extra qualification?
I have never heard of it before (until recently when some of you started using GCC 4).  :shock:
Title: Re: extra qualification error in sdk\cbeditor.cpp
Post by: Michael on June 12, 2006, 01:58:21 pm
I have a small question. What is wrong with the extra qualification, and what is an extra qualification?
I have never heard of it before (until recently when some of you started using GCC 4).  :shock:

Hello,

May be this can help a bit:

http://wiki.frugalware.org/Extra_qualification_error

Best wishes,
Michael
Title: Re: extra qualification error in sdk\cbeditor.cpp
Post by: killerbot on June 12, 2006, 01:59:40 pm
class Test
{
public:
   MyMethod() //  no need to specify it's a Test member, so no extra qualification
}

class Test
{
public:
   Test::MyMethod() //  here we have an extra qualification, specifying it's a test member method , duh
}

Title: Re: extra qualification error in sdk\cbeditor.cpp
Post by: oz on June 12, 2006, 02:00:28 pm
Yes, I have the same question :lol:, when I use the GCC4.1.1 instead of the 3.4.2, I have to remove all the 'extra qualifications' that I put in some header files, but I do not know why it will say an error in the cpp file? :shock:
Title: Re: extra qualification error in sdk\cbeditor.cpp
Post by: killerbot on June 12, 2006, 03:43:52 pm
Yes, I have the same question :lol:, when I use the GCC4.1.1 instead of the 3.4.2, I have to remove all the 'extra qualifications' that I put in some header files, but I do not know why it will say an error in the cpp file? :shock:

because it was in the declaration/definition of a local struct in the cpp file, like in my previous example above it does not matter where that code is put (header or source), when you implement in the class body no extra specification is required