Windows SDK版本10.0.15063.0的编译错误 [英] Compilation error with Windows SDK Version 10.0.15063.0

查看:269
本文介绍了Windows SDK版本10.0.15063.0的编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 10上安装更新后,Visual Studio 2017开始使用"Windows SDK版本";对于任何新项目,默认情况下为10.0.15063.0。这些项目抛出编译错误,说"无法打开文件kernel32.lib"。
的解决方法克服了这个编译错误,我厌倦了:

After installing updates on Windows 10, Visual Studio 2017, started using "Windows SDK Version" 10.0.15063.0 by default for any new project. These projects throw compilation error saying "cannot open file kernel32.lib". Workaround to overcome this compilation error, which I tired are:

1-添加路径" C:\Program Files(x86)\ Mysoftoft SDKs \ Windows \\ \\v7.1A\Lib"到VC ++目录 - >通过项目属性设置的任何新项目的库目录。

1- Adding path "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" to VC++ Directories -> Library Directories for any new project via Project properties settings.

2-更改"Windows SDK版本"到10.0.14393.0或8.1。

2- Changing the "Windows SDK Version" to 10.0.14393.0 or 8.1.

使用这些更改之一,编译问题就解决了。

With either of these changes, compilation issue is resolved.

这个问题是因为某些更新缺失/修复?我不想为任何新项目手动进行这些更改,那么如何才能解决这些问题呢?

Is this issue because of some missing updates/fixes ? I don't want to make these changes manually for any new projects, so how can I get these things resolved ?

推荐答案

欢迎来到MSDN论坛。

Welcome to MSDN forum.

请看一下:
https://developercommunity.visualstudio.com/content/problem/41913/link-fatal-error- lnk1104-in-empty-c-project.html

Windows 10 Creators Update SDK对作为部件安装的内容进行了一些重大更改安装,以尽量减少磁盘占用空间。这是一个

已知问题
那个重构工作的地方是"桌面"。默认情况下,不会安装Creators Update SDK的组件。以前的新项目逻辑总是选择最新的Windows 10 SDK,假设桌面部分
是作为安装方案的一部分安装的。我们正在努力修复未来的更新。

The Windows 10 Creators Update SDK made some significant changes to what is installed as part of the installation to minimize on-disk footprint. This is a Known Issue that results from that refactoring work where the "desktop" components of the Creators Update SDK do not get installed by default. The previous new project logic always selected the latest Windows 10 SDK, assuming the desktop portions were installed as part of that installation scenario. We are working on a fix for a future update.

可用的解决方法如下:

< span lang ="EN"> 1。在项目属性中选择已完全安装在系统上的Windows 10 SDK版本(即10.0.14393.0或更早版本)

2 。通过Visual Studio安装程序安装'Windows 10 SDK(10.0.15063.0)for Desktop'组件。

win10sdk-15063desktop.png

祝你好运,

Joyce

Joyce


这篇关于Windows SDK版本10.0.15063.0的编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆