- GUI.h, ImageList.xs allowed missing ImageList_* functions to be
compiled in under MinGW and Cygwin, if w32api package has high
enough version
Jez, I'd be particularly interested to know that this compiles for you,
where you have a pre-3.2 w32api package from MinGW
Doing a normal mingw build I get the following errors:
ImageList.o(.text+0xd2a):ImageList.cpp: undefined reference to
[EMAIL PROTECTED]
0'
ImageList.o(.text+0x21c4):ImageList.cpp: undefined reference to
`ImageList_DrawI
[EMAIL PROTECTED]'
ImageList.o(.text+0x25e9):ImageList.cpp: undefined reference to
`_Z19ImageList_D
[EMAIL PROTECTED]'
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.
Playing around, I have the following (in w32api.h):
#define __W32API_VERSION 2.5
#define __W32API_MAJOR_VERSION 2
#define __W32API_MINOR_VERSION 5
If I then change the logic in GUI.h to include these version numbers things
compile fine.
Cheers,
jez.