1)Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1)- a
程序员文章站
2022-03-05 15:53:15
1>Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example:
1>- add -D_WIN3...
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>- 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