User forums > Help

extra qualification error

(1/2) > >>

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:

--- 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’
--- End code ---

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();
--- End code ---
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 ;)

DrPhil_Guth:
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

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.

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

Navigation

[0] Message Index

[#] Next page

Go to full version