WINNT编译器升压警告

WINNT编译器升压警告

本文介绍了D_WIN32_WINNT编译器升压警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道做这个错误是什么。新增 -D_WIN32_WINNT = 0x0501 根据项目属性Visual Studio的命令行选项,但它说,它不承认它,并警告仍然出现。

我也不清楚如何添加preprocessor定义。

解决方案

I think you're really close to getting this to work. John Dibling gave three ways you could do this and it looks like you tried the third solution, which was to "go in to your project's settings ... and under the Configuration Properties->C/C++->PreProcessor heading, add ;_WIN32_WINNT = 0x0501". You replied that you were still getting that error and provided the contents of your preprocessor settings, WIN32;_DEBUG;_CONSOLE;_WIN32_WINNT = 0x0501. I think you can solve this if you change _WIN32_WINNT = 0x0501 to _WIN32_WINNT=0x0501. When I tried the version with spaces, it did not eliminate the error, but removing the spaces did.

这篇关于D_WIN32_WINNT编译器升压警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 04:22