错误无法打开文件“kernel32.lib" [英] error cannot open file 'kernel32.lib'

查看:44
本文介绍了错误无法打开文件“kernel32.lib"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Windows 7 上安装了 VS2013 和 VS2015.

我有一个现有的 C++ Dll 项目,它构建得很好,但现在突然它不会使用 VS2015 构建并给我错误:

LINK:致命错误 LNK1104:无法打开文件 'kernel32.lib'

来自这篇文章:

我的平台工具集设置为 Visual Studio 2013 - Windows XP (v120_xp),这是它一直设置的.

为什么我的项目突然停止构建?可能出了什么问题?

解决方案

我今天在更改 VC++ 目录时使用 Visual Studio 2013 时遇到了类似的问题:

项目->属性->VC++目录:包括目录

I have installed VS2013 and VS2015 on Windows 7.

I have an existing C++ Dll project that was building fine but now all of a sudden it wont build using VS2015 and gives me the error:

LINK : fatal error LNK1104: cannot open file 'kernel32.lib'

From this post: fatal error LNK1104: cannot open file 'kernel32.lib' I went looking for the kernel32.lib file and it is located here:

C:Program Files (x86)Windows Kits8.1Libwinv6.3umx86

When I go to my Projects Properties-->Linker-->Input and select Macros I see that this path is indeed there:

My Platform Toolset is set to Visual Studio 2013 - Windows XP (v120_xp) which is what it always has been set to.

Why has my Project all of a sudden stopped building? What could have gone wrong?

解决方案

I had this similar problem today with Visual Studio 2013 when I changed my VC++ Directories:

Project->Properties->VC++ Directories: Include Directories

这篇关于错误无法打开文件“kernel32.lib"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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