Getting these while building the ide/VisualC6/fltk.dsw on VS7.
Seems it doesn't like this code inside the method 
Fl_Text_Display::draw_string() (which is const):

    if (Fl::focus() == this) ..

.for some reason the compiler thinks testing against 'this'
somehow breaks const:

------ Build started: Project: fltk, Configuration: Release Win32 ------

Compiling...
Fl_Text_Display.cxx
\tmp\fltk-1.3.x-svn\src\Fl_Text_Display.cxx(1944) : error C2446: '==' : no 
conversion from 'const Fl_Text_Display *const ' to 'Fl_Widget *'
        Conversion loses qualifiers
\tmp\fltk-1.3.x-svn\src\Fl_Text_Display.cxx(1944) : error C2440: '==' : cannot 
convert from 'const Fl_Text_Display *const ' to 'Fl_Widget *'
\tmp\fltk-1.3.x-svn\src\Fl_Text_Display.cxx(1949) : error C2446: '==' : no 
conversion from 'const Fl_Text_Display *const ' to 'Fl_Widget *'
        Conversion loses qualifiers
\tmp\fltk-1.3.x-svn\src\Fl_Text_Display.cxx(1949) : error C2440: '==' : cannot 
convert from 'const Fl_Text_Display *const ' to 'Fl_Widget *'
\tmp\fltk-1.3.x-svn\src\Fl_Text_Display.cxx(1953) : error C2446: '==' : no 
conversion from 'const Fl_Text_Display *const ' to 'Fl_Widget *'
        Conversion loses qualifiers
\tmp\fltk-1.3.x-svn\src\Fl_Text_Display.cxx(1953) : error C2440: '==' : cannot 
convert from 'const Fl_Text_Display *const ' to 'Fl_Widget *'
\tmp\fltk-1.3.x-svn\src\Fl_Text_Display.cxx(2014) : error C2446: '==' : no 
conversion from 'const Fl_Text_Display *const ' to 'Fl_Widget *'
        Conversion loses qualifiers
\tmp\fltk-1.3.x-svn\src\Fl_Text_Display.cxx(2014) : error C2440: '==' : cannot 
convert from 'const Fl_Text_Display *const ' to 'Fl_Widget *'
\tmp\fltk-1.3.x-svn\src\Fl_Text_Display.cxx(2020) : error C2446: '==' : no 
conversion from 'const Fl_Text_Display *const ' to 'Fl_Widget *'
        Conversion loses qualifiers
\tmp\fltk-1.3.x-svn\src\Fl_Text_Display.cxx(2020) : error C2440: '==' : cannot 
convert from 'const Fl_Text_Display *const ' to 'Fl_Widget *'

Build log was saved at 
"file://z:\tmp\fltk-1.3.x-svn\ide\VisualC6\Release\fltk\BuildLog.htm"
fltk - 10 error(s), 0 warning(s)

=================================================================

FWIW, I can get it to compile by re-casting all the instances of
'this' in this method, (e.g. '(void*)this'.. probably (Fl_Widget*) would work 
as well.. it's very late or I'd try it)
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to