欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

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>Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).


编译警告解决方案:

在头部加入

#ifdef _MSC_VER
#define _WIN32_WINNT 0x0501
#endif