DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2235
Version: 2.0-current


The GCC compiler suite provides a non-standard preprocessor directive:

#warning

The #warning directive is used in the FLTK 2.0 branch.  This preprocessor
directive is not supported by Microsoft's optimizing c++ compiler.  When
this directive is encountered it prevents the generation of *.sbr files -
intermediate complilation files.  When these *.sbr files are not found the
compilation of FLTK 2.0 fails.

To allow developers who use the MSVS IDE to compile FLTK 2.0 please
consider using the following preprocessor directive in place of "#warning"
in MSVS projects:

#pragma message ( "message here" )

For example:

#warning we assume PixelType = 6 ARGB32 in test it is true for color
images

- can be replaced with -

#ifdef __GNUC__
#warning we assume PixelType = 6 ARGB32 in test it is true for color
images
#elif defined(_MSC_VER)
#pragma message ( "we assume PixelType = 6 ARGB32 in test it is true for
color images" )
#endif

_______________

Pertaining to fltk v2.0.x-r6841:

Changes similar to the above to files Cursor.cxx line number 281 and
Window_fullscreen.cxx line number 220 allowed MSVS to generate the *.sbr
files for these translation units.  This allowed for a successful
compilation of FLTK 2.0 using MSVS.

Please consider using #warning with gcc and #pragma message with
Microsoft's optimizing c++ compiler as general practice.


Link: http://www.fltk.org/str.php?L2235
Version: 2.0-current
Attachment: http://www.fltk.org/strfiles/2235/cursor-window_fullscreen.zip

_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to