News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

extra qualification error in sdk\cbeditor.cpp

Started by Michael, June 11, 2006, 11:56:27 PM

Previous topic - Next topic

Michael

Hello,

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


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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

Ceniza

Fixed :)

I just hope killerbot don't release another nightly because of it like he did some time ago :P

Michael

Quote from: Ceniza on June 12, 2006, 01:37:31 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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

sethjackson

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:

Michael

Quote from: 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:

Hello,

May be this can help a bit:

http://wiki.frugalware.org/Extra_qualification_error

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

killerbot

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
}


oz

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:

killerbot

Quote from: 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:

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