On 21.06.2010, at 19:14, Jim Wilson wrote:
> I'm trying to resurrect an FLTK app, cross compiled with MINGW, the compiler 
> is
> based on a newer version of GCC:  (4.4.2).  The newer compiler barfs on
> Fl_JPEG_Image.cxx, line 158:
>
>        dinfo.quantize_colors = (boolean)FALSE;
>
> Which I believe should be:
>
>        dinfo.quantize_colors = (bool) FALSE;
>
> (or words to that effect).  Am I nuts?  Is my development environment hosed?  
> Or
> should I file an STR?

boolean is defined in jpeg/jconfig.h, included by #include <jpeglib.h>:

/* Define "boolean" as unsigned char, not int, per Windows custom */
typedef unsigned char boolean;

The usage ought to be consistent with this definition.

And here we may have a problem since we're still using jpeglib 7.
My guess is that you don't use FLTK's bundled jpeglib, and that
you have a newer version installed on your system. Maybe this
definition has been removed?

Which FLTK version do you use, BTW?

What happens if you configure with --enable-localjpeg ?

If you're trying to "resurrect an FLTK *1.1* app", then I don't
see any way but using the bundled lib or patching the FLTK sources
yourself, since FLTK 1.1 is closed.

For FLTK 1.3, however, we need to use the newer libjpeg anyway.
Filing an STR for this would be a good idea.

Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to