1>Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1>- add -D_WIN32_WINNT=0x

1>Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example:
1>- add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1>- add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.

1>Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).


编译警告解决方案:

在头部加入

#ifdef _MSC_VER
#define _WIN32_WINNT 0x0501
#endif

你可能感兴趣的:(C/C++,网络游戏服务器开发)