Code::Blocks Forums

User forums => Help => Topic started by: DrPhil_Guth on January 07, 2007, 11:53:49 am

Title: extra qualification error
Post by: DrPhil_Guth 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?

Title: Re: extra qualification error
Post by: Der Meister 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 ;)
Title: Re: extra qualification error
Post by: DrPhil_Guth on January 07, 2007, 12:42:24 pm
It was the .tgz source from
http://www.codeblocks.org/downloads.shtml

The download link is
http://prdownloads.sourceforge.net/codeblocks/codeblocks-1.0rc2.tgz?download
Title: Re: extra qualification error
Post by: Der Meister 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 (http://www.codeblocks.org/source_code.shtml).
Title: Re: extra qualification error
Post by: DrPhil_Guth 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
Title: Re: extra qualification error
Post by: Game_Ender on January 08, 2007, 10:18:34 am
Did you read the Download (http://www.codeblocks.org/downloads.shtml) page by change?  You know, the large paragraph at the top ;).
Title: Re: extra qualification error
Post by: DrPhil_Guth on January 09, 2007, 11:33:37 am
Well erm no, I should have obviously.
Thanks anyway, it seems to work now.