Author Topic: Codeblocks CVS (11/04/05) - multiple compile errors (+fix)  (Read 4188 times)

idea117

  • Guest
Codeblocks CVS (11/04/05) - multiple compile errors (+fix)
« on: November 05, 2005, 01:39:25 am »
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")));

Offline iplayfast

  • Single posting newcomer
  • *
  • Posts: 4
Re: Codeblocks CVS (11/04/05) - multiple compile errors (+fix)
« Reply #1 on: November 13, 2005, 07:03:23 am »
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

  • Guest
Re: Codeblocks CVS (11/04/05) - multiple compile errors (+fix)
« Reply #2 on: November 14, 2005, 02:41:08 am »
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.

And wxListItem's SetTextColour() only accepts wxColours:

Code
void SetTextColour(const wxColour& colText)
Sets the text colour for the item.
« Last Edit: November 14, 2005, 02:49:52 am by Takeshi Miya »