VS2010编译:_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)

简介: VS2010编译:_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)

解决办法一

在stdafx.h中添加宏定义


#define _WIN32_WINNT 0x0502


必须在stdafx.h中所有#include 文件之前添加此代码。



解决办法二

有时候,因为某些原因不使用stdafx,那么可以:


项目,右键,属性,C/C++,预处理器,预处理器定义,增加一个:


_WIN32_WINNT=0x0502

目录
相关文章
|
7月前
|
SQL Oracle 关系型数据库
运行QtDesigner.exe报错:it could not find or load the Qt platform plugin “windows“
运行QtDesigner.exe报错:it could not find or load the Qt platform plugin “windows“
运行QtDesigner.exe报错:it could not find or load the Qt platform plugin “windows“
|
C++
VS2010编译:_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
VS2010编译:_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
350 0
|
TensorFlow 算法框架/工具 C++
成功解决ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a
成功解决ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a
成功解决ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a