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


Having the same fatal build error with Visual C++ 6 (v2.0.x-r6841 build):

Compiling...
Cursor.cxx
D:\Development\fltk-2.0.x-r6841\src\Cursor.cxx(281) : fatal error C1021:
invalid preprocessor command 'warning'
Window_fullscreen.cxx
D:\Development\fltk-2.0.x-r6841\src\Window_fullscreen.cxx(220) : fatal
error C1021: invalid preprocessor command 'warning'
Generating Code...
Error executing cl.exe.

As simulacrum111 mentioned, replacing:

    #warning comment

with

    #ifdef __GNUC__
    #warning comment
    #elif defined(_MSC_VER)
    #pragma message ( "comment" ) 
    #endif

fixes the problem with the MSVC compiler, and I can confirm this with the
VC6 version.

Note it generates a text message only in the compilation window, not a
true compilation warning, but probably the best that can be done. 
Compilation window after above changes:

Compiling...
Cursor.cxx
Window_fullscreen.cxx
we assume PixelType = 6 ARGB32 in test it is true for color images
Generating Code...
This method will not work on this system. (you can ignore this warning)
Creating library...


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

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

Reply via email to