Error building library with codeblocks

twsonic87

05-02-2008 03:47:09


-------------- Build: Debug Win32 in QuickGUI ---------------

Compiling: src\QuickGUIBorder.cpp
In file included from ./include/QuickGUIPrecompiledHeaders.h:36,
from C:\QuickGUI\QuickGUI\src\QuickGUIBorder.cpp:1:
c:/OgreSDK/include/OgreUTFString.h: In copy constructor `Ogre::UTFString::_fwd_iterator::_fwd_iterator(const Ogre::UTFString::_fwd_iterator&)':
c:/OgreSDK/include/OgreUTFString.h:290: warning: base class `class Ogre::UTFString::_base_iterator' should be explicitly initialized in the copy constructor
c:/OgreSDK/include/OgreUTFString.h: In copy constructor `Ogre::UTFString::_const_fwd_iterator::_const_fwd_iterator(const Ogre::UTFString::_const_fwd_iterator&)':
c:/OgreSDK/include/OgreUTFString.h:421: warning: base class `class Ogre::UTFString::_base_iterator' should be explicitly initialized in the copy constructor
c:/OgreSDK/include/OgreUTFString.h: In copy constructor `Ogre::UTFString::_rev_iterator::_rev_iterator(const Ogre::UTFString::_rev_iterator&)':
c:/OgreSDK/include/OgreUTFString.h:569: warning: base class `class Ogre::UTFString::_base_iterator' should be explicitly initialized in the copy constructor
c:/OgreSDK/include/OgreUTFString.h: In copy constructor `Ogre::UTFString::_const_rev_iterator::_const_rev_iterator(const Ogre::UTFString::_const_rev_iterator&)':
c:/OgreSDK/include/OgreUTFString.h:678: warning: base class `class Ogre::UTFString::_base_iterator' should be explicitly initialized in the copy constructor
In file included from ./include/QuickGUIPanel.h:9,
from ./include/QuickGUISheet.h:7,
from ./include/QuickGUIManager.h:16,
from ./include/QuickGUIPrecompiledHeaders.h:62,
from C:\QuickGUI\QuickGUI\src\QuickGUIBorder.cpp:1:
./include/QuickGUICheckBox.h: In member function `void QuickGUI::CheckBox::addOnCheckChangedEventHandler(void (T::*)(const QuickGUI::EventArgs&), T*)':
./include/QuickGUICheckBox.h:20: error: `mOnSelectUserEventHandlers' was not declared in this scope
Process terminated with status 1 (0 minutes, 4 seconds)
1 errors, 4 warnings


just confused as to why there would be a scope problem

kungfoomasta

05-02-2008 07:29:25

I'm not ignoring the post, but I'm not familiar with reading Code Block error messages. In the version of the code you have, what is at line 36?

Hopefully somebody else can spot the problem. Are you using the latest from SVN?

Zini

05-02-2008 10:41:00

This is the interesting part


In file included from ./include/QuickGUIPanel.h:9,
from ./include/QuickGUISheet.h:7,
from ./include/QuickGUIManager.h:16,
from ./include/QuickGUIPrecompiledHeaders.h:62,
from C:\QuickGUI\QuickGUI\src\QuickGUIBorder.cpp:1:
./include/QuickGUICheckBox.h: In member function `void QuickGUI::CheckBox::addOnCheckChangedEventHandler(void (T::*)(const QuickGUI::EventArgs&), T*)':
./include/QuickGUICheckBox.h:20: error: `mOnSelectUserEventHandlers' was not declared in this scope


The line 36+ stuff are only the usual warnings you get, when you compile QuickGUI with gcc.

I assume it is the current version, because I have compiled a slightly older version (rev 330) without problems, so it is likely an only recently introduced problem. Unfortunately I currently can't connect to the SVN repository, so I can't help out at the moment.

Edit: Looks like it was only a minor hiccup at the repository. I have downloaded the most recent version and build it successfully.

Edit2: But I am not using precompiled headers.
@twsonic87: Try compiling QuickGUI without precompiled headers and see if that makes a difference.