error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0501
2014-10-27 17:54
471 查看
将vs2003的工程升级后放在vs2010产生的问题,
fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended”
经过大百度搜索:
应该是_WIN32_WINNT这个宏对应定义的系统的版本号,如果太低的话,编译器就会认为代码无法在当前的系统上编译。
说了原因,下面是修改方法,就是在stdafx.h文件中修改相关的定义,修改完后的效果应该如下:
将vs2003的工程升级后放在vs2010产生的问题,
fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended”
经过大百度搜索:
应该是_WIN32_WINNT这个宏对应定义的系统的版本号,如果太低的话,编译器就会认为代码无法在当前的系统上编译。
说了原因,下面是修改方法,就是在stdafx.h文件中修改相关的定义,修改完后的效果应该如下:
相关文章推荐
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x
- VS2010 -- fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- 错误修改: error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Valu
- fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.
- 错误修改: error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Valu
- error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x0403
- fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.
- 错误 1 error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value
- vc2010_error C1189:#error:This file requires _WIN32_WINNT to be #defined at least to 0x
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recomme
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x
- VS2010编译错误:fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x