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

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

问题描述

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

I have installed VS2013 and VS2015 on Windows 7.

我有一个现有的C ++ Dll项目,该项目可以很好地进行构建,但是现在突然之间,它将无法使用VS2015进行构建,并给我错误:

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'

来自此帖子:严重错误LNK1104:无法打开文件'kernel32 .lib'我去寻找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 Kits\8.1\Lib\winv6.3\um\x86

当我进入我的项目 Properties-> Linker-> Input 并选择"Macros"时,我看到此路径确实存在:

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

我的平台工具集设置为 Visual Studio 2013-Windows XP(v120_xp).

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?

推荐答案

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

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

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

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

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

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