Author Topic: cvs error  (Read 4443 times)

Offline iplayfast

  • Single posting newcomer
  • *
  • Posts: 4
cvs error
« 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?

takeshimiya

  • Guest
Re: cvs error
« Reply #1 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 :)

takeshimiya

  • Guest
Re: cvs error
« Reply #2 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.
« Last Edit: November 14, 2005, 02:49:30 am by Takeshi Miya »