User forums > Using Code::Blocks
Codeblocks CVS (11/04/05) - multiple compile errors (+fix)
(1/1)
idea117:
Apparently, you guys forgot a few header files and other small things. This fixed the problems:
add the following into codeblocks/src/sdkmacrosmanager.cpp
#include "uservarmanager.h"
#include "configmanager.h"
add the following into codeblocks/src/sdkmanager.cpp
#include "uservarmanager.h"
lastly, in codeblocks/src/plugins/contrib/profiler/cbprofilerexec.cpp
change
line 176: item.SetTextColour(wxTheColourDatabase->Find(_T("GREY")));
to
line 176: item.SetTextColour((unsigned long)wxTheColourDatabase->Find(_T("GREY")));
iplayfast:
I can concur with idea117 that line 176 won't compile in cvs, but will compile with his fix. I'm finding that any buttons don't seem to be hooked up to any code. For example I select the new project (menus work) and then select ogre, and then click ok, nothing happens. Click Cancel, still nothing happens. Also happens at the hints.
takeshimiya:
OK, I noticed you're probably using another version of wxWidgets (2.6.2?), because I'm using 2.6.1 and didn't need any fix to get it working, but if I apply the suggested fix (cast to unsigned long) it gives the error:
cbprofilerexec.cpp:176: error: `class wxColour' used where a `long unsigned int' was expected
EDIT: Or something went wrong with your setup because there isn't any constructor of wxColour which accepts unsigned longs:
--- Code: ---wxColour()
Default constructor.
wxColour(const unsigned char red, const unsigned char green, const unsigned char blue)
Constructs a colour from red, green and blue values.
wxColour(const wxString& colourNname)
Constructs a colour object using a colour name listed in wxTheColourDatabase.
wxColour(const wxColour& colour)
Copy constructor.
--- End code ---
And wxListItem's SetTextColour() only accepts wxColours:
--- Code: ---void SetTextColour(const wxColour& colText)
Sets the text colour for the item.
--- End code ---
Navigation
[0] Message Index
Go to full version