_WIN32_WINNT not defined. Defaulting to _win32_winnt_maxver (see WINSDKVER.H)

Source: Internet
Author: User

Original address:: http://blog.csdn.net/xiaolongwang2010/article/details/7550505

Related web Posts

1, error can not find WinsdkVer.h----http://bbs.csdn.net/topics/380128304?page=1#post-396334704

Warning Report:

_WIN32_WINNT not defined. Defaulting to _win32_winnt_maxver (see WINSDKVER.H)

Treatment methods:

The first step:

"#define _WIN32_WINNT 0x0502"

Add the above macro definitions in StdAfx.h.

Note: You must add this code before all the # include files in stdafx.h .

Step Two:

Add # include <SDKDDKVer.h> a definition of platform in StdAfx.h header file

Note: If there is a StdAfx.h inside there is no need to add #include <SDKDDKVer.h>!

Including SDKDDKVer.h defines the highest available Windows platform.

If you wish to build your application for a previous Windows platform, include WinSDKVer.h and

Set the _WIN32_WINNT macro to the platform-wish to support before including SDKDDKVer.h.

Full text reference: http://blog.sina.com.cn/s/blog_8d7f7f3c01010s3g.html

http://blog.csdn.net/ayan200112/article/details/6918975

//==============================================================================================

Note::

1 "The Winsdkver.h+sdkddkver.h file on the PC is stored on a path of----C:\Program Files\Microsoft Sdks\windows\v7.0a\include

_WIN32_WINNT not defined. Defaulting to _win32_winnt_maxver (see WINSDKVER.H)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.