Author Topic: extra qualification error  (Read 9901 times)

DrPhil_Guth

  • Guest
extra qualification error
« on: January 07, 2007, 11:53:49 am »
Hi! Sorry, I haven't even come to run Codeblocks, because i am constantly encountering errors (currently that if try to run codeblocks, it says it cant find libcodeblocks.so.0)

I am Running Ubuntu 6.10 Edgy, and i have gcc version 4.1.2

When I ran make, I got a few errors concerning Extra Qualification.

for example these:
Code
./editormanager.h:129: error: extra qualification ‘EditorManager::’ on member ‘GetTree’
./managedthread.h:14: error: extra qualification ‘ManagedThread::’ on member ‘ManagedThread’
./managedthread.h:15: error: extra qualification ‘ManagedThread::’ on member ‘ManagedThread’
./xtra_classes.h:21: error: extra qualification ‘wxSplitPanel::’ on member ‘wxSplitPanel’
./xtra_classes.h:24: error: extra qualification ‘wxSplitPanel::’ on member ‘wxSplitPanel’
./xtra_classes.h:36: error: extra qualification ‘wxSplitPanel::’ on member ‘RefreshSplitter’
./xtra_classes.h:38: error: extra qualification ‘wxSplitPanel::’ on member ‘wxSplitPanel’

I searched the right source files for the line where the error occured, and I found that although the member functions were defined in the right namespace, the functions where named with the namespace (dunno how to express myself...)

example:

codeblocks-1.0rc2/src/sdk/editormanager.h:129

Code
EditorManager::wxTreeCtrl *GetTree();
I simply removed "EditorManager::" and all the other qualifications where an error occured, and then at least the make script worked.

I'm quite a noob concerning C++, but wouldn't it be more sensible to simply leave out the extra qualifications?


Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: extra qualification error
« Reply #1 on: January 07, 2007, 12:01:30 pm »
Where did you get the source from? Because these errors were fixed in svn head a really long time ago.

PS: Could anyone update the project files in svn to the new version? Thanks ;)
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

DrPhil_Guth

  • Guest
Re: extra qualification error
« Reply #2 on: January 07, 2007, 12:42:24 pm »

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: extra qualification error
« Reply #3 on: January 07, 2007, 12:49:15 pm »
These are the sources of the RC2 release - which is more than one year old.

The current sources should be obtained through svn as described here.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

DrPhil_Guth

  • Guest
Re: extra qualification error
« Reply #4 on: January 08, 2007, 07:39:15 am »
Ok, i got the right sources now and I compiled it (with a few error messages less) and it works.
You know, normally if I want to download a program and install it from source, i go to google, search for the program, hit the site that seems to be the most official (www.codeblocks.org seemed quite official) and search for something like download. I didn't see a hint there that the source might be old...

But anyway, thanks for help

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: extra qualification error
« Reply #5 on: January 08, 2007, 10:18:34 am »
Did you read the Download page by change?  You know, the large paragraph at the top ;).

DrPhil_Guth

  • Guest
Re: extra qualification error
« Reply #6 on: January 09, 2007, 11:33:37 am »
Well erm no, I should have obviously.
Thanks anyway, it seems to work now.