Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: iplayfast on November 14, 2005, 02:28:23 am

Title: cvs error
Post by: iplayfast on November 14, 2005, 02:28:23 am
There is an error under cvs, for which a fix is supplied here http://forums.codeblocks.org/index.php/topic,1292.0.html

My error (after getting past these) is that the buttons don't seem to be connected to anything. Has anyone recently done a clean checkout to be sure that things are compiling the way they expect?
Title: Re: cvs error
Post by: takeshimiya on November 14, 2005, 02:32:35 am
6 hours ago I did a clean checkout from CVS HEAD, in windows, without any problem or fix, and the toolbar is working as expected.

BTW, I used LF for the EOLs and everything seems to work as usual :)
Title: Re: cvs error
Post by: takeshimiya on November 14, 2005, 02:40:39 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.