I searched and couldn't find any info. But when I install the Visual C++ Toolkit 2003 and the PlatformSDK, the compile has quite a few warning messages (similar to _WIN_NT not defined, I recall) related to code in the PlatformSDK. Is there anyway to supress these messages or address them?
Which PlatformSDK did you install?
Which OS are you running?
The way to address the issues is to define the correct values in most cases.
From mingw include/w32api.h
/* Use these values to set _WIN32_WINDOWS and WINVER to your minimum support
* level */
#define Windows95 0x0400
#define Windows98 0x0410
#define WindowsME 0x0500
/* Use these values to set _WIN32_WINNT and WINVER to your mimimum support
* level. */
#define WindowsNT4 0x0400
#define Windows2000 0x0500
#define WindowsXP 0x0501
#define Windows2003 0x0502
#define WindowsVista 0x0600
/* Use these values to set _WIN32_IE to your minimum support level */
#define IE3 0x0300
#define IE301 0x0300
#define IE302 0x0300
#define IE4 0x0400
#define IE401 0x0401
#define IE5 0x0500
#define IE5a 0x0500
#define IE5b 0x0500
#define IE501 0x0501
#define IE55 0x0501
#define IE56 0x0560
#define IE6 0x0600
#define IE601 0x0601
#define IE602 0x0603
#define IE7 0x0700
Maybe it is my code, although MinGW doesn't give the same warnings. And my code is so basic, I am not sure why it generates more warning messages than actual lines of code (just a basic winsock operation). Some of the warnings make no sense (like _WIN_NT_ not defined). I'll post my project and the exact warnings tonight.
Note: minGW defines a default value for some of these things if the user does NOT define one; they tend to set it to the max value listed in the above w32api.h code.
If I have an issue under minGW, I set the value to what I have or to a lower value that the code is supposed to support. In other words, if the application requires IE6 and I have IE7 I set _WIN32_IE=0x0600 this should allow people using IE6 to be able to compile the code. Most of the time I just set _WIN32_IE=0x0400 because most code seems to require at least IE 4.0 and it is a good default when compiling others people code.
Tim S