On 13.01.2011 16:03, Greg Ercolano wrote: > Brian Tilley wrote: >> Attempted to build FLTK-1.3.0rc3 in visualC++ V6 today. >> Used fltk.dsw in the visualc6 folder under ide. >> Selected fltk and Win32 release >> Got the following Errors........... >> >> Fl_Text_Display.cxx >> C:\fltk\fltk-1.3.0rc3\src\Fl_Text_Display.cxx(1941) : error C2446: '==' : no >> conversion from 'const class Fl_Text_Display *const ' to 'class Fl_Widget *' >> Conversion loses qualifiers >> C:\fltk\fltk-1.3.0rc3\src\Fl_Text_Display.cxx(1941) : error C2230: '==' : >> indirection to different types > [..] >> Is this a RC3 bug or a problem with VisualC++ V6 ? > > Might be both.
The VisualC2008 project builds well with VC 2008 Express, and since they use the same source files, I tend to say that it's a bug in the old VC6 compiler. And (looking at Greg's patch) I don't see a reason why a *comparison* shouldn't be allowed here (taking into account that the later compiler version is okay with it). > Please report this using the STR. > > Here's a patch I've been using.. basically casting > instances of 'this' to a (void*) for the equality tests: [patch elided] Wouldn't it be better to use (Fl_Widget *) or maybe better yet (Fl_Text_Display *)? The former, because this is the returned type of Fl::focus(), the latter because this is what "this" is (no pun intended). Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

