Author Topic: extra qualification error in sdk\cbeditor.cpp  (Read 7304 times)

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
extra qualification error in sdk\cbeditor.cpp
« on: June 11, 2006, 11:56:27 pm »
Hello,

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

Code
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
« Last Edit: June 11, 2006, 11:58:42 pm by Michael »

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: extra qualification error in sdk\cbeditor.cpp
« Reply #1 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

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: extra qualification error in sdk\cbeditor.cpp
« Reply #2 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

sethjackson

  • Guest
Re: extra qualification error in sdk\cbeditor.cpp
« Reply #3 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:

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: extra qualification error in sdk\cbeditor.cpp
« Reply #4 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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: extra qualification error in sdk\cbeditor.cpp
« Reply #5 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
}


Offline oz

  • Multiple posting newcomer
  • *
  • Posts: 47
Re: extra qualification error in sdk\cbeditor.cpp
« Reply #6 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:

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: extra qualification error in sdk\cbeditor.cpp
« Reply #7 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