On Sat, 30 May 2009 11:50:46 -0700, Mat Nieuwenhoven wrote: >Hi, > >I synced today fltk-1.1 to revision 6791 . When building with Watcom 1.8, >it complained about a missing multimon.h , which is included from >screen_xywh.cxx . I cannot find multimon.h in the fltk-1.1 tree on disk. Is >my source out of sync or is something else wrong?
Hi Greg and Albrecht, Thanks for replying. I've found the problem, HMONITOR_DECLARED is not defined in OpenWatcom 1.8. In OW versions prior to 1.8, the Win32 API headers were derived from the MinGW ones. From 1.8, a complete new set was made not derived from MinGW. In windef.h from OW17 it goes like this (unconditionally declaration): DECLARE_HANDLE(HMONITOR); #define HMONITOR_DECLARED 1 In OW18 is is: #if (WINVER >= 0x0500) DECLARE_HANDLE( HMONITOR ); Note that even if WINVER >= 0x0500, HMONITOR_DECLARED is not defined even though DECLARE_HANDLE( HMONITOR ) is done. This could be a mistake. I'll raise in the OW contributors newsgroup. No OW version frm 1.0 onwards ever supplied multimon.h, I'll raise this also. The probable best workaround is to change the Watcom makefile in src to define WINVER. For 1.8 also a backwards compatible small change is needed in watcom.mif. I'll test it and let you know. To answer Albrecht's other questions: last prior to this was fltk-1.1.x - r5683, which was September 2007. But with an earlier version of OW. I develop on OS/2 and Linux (Mandriva), not Windows. But for OW this doesn't make a difference, the makefiles set the proper target environment. I don't know if building on a DOS host would work because of the long filenames. Mat Nieuwenhoven PS. I saw a radio amateur program built with FLTK 1.1.9, "fldigi" . It looked very nice. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
