News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

extra qualification error

Started by DrPhil_Guth, January 07, 2007, 11:53:49 AM

Previous topic - Next topic

DrPhil_Guth

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:
./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

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?


Der Meister

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.


Der Meister

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

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

Game_Ender

Did you read the Download page by change?  You know, the large paragraph at the top ;).

DrPhil_Guth

Well erm no, I should have obviously.
Thanks anyway, it seems to work now.