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

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

问题描述

自从我在 Visual C++ 2010 Express 编译器上安装用于 64 位编程的 .NET Framework SDK 以来,我一直收到此错误.由于我遇到的这个单一错误,我根本无法编译一个简单的程序.我的平台是 x86.如果有帮助,这里是一个快照:

I've been getting this error ever since I installed the .NET Framework SDK for 64-bit programming on my Visual C++ 2010 Express compiler. I can't compile even a simple program at all because of this single error I'm getting. My platform is x86. Here is a snap shot if it helps:

我不知道该说什么.我昨天刚刚下载了这个编译器,它运行良好.我想从 32 位编程升级到 64 位以便我可以使用 Assembly,所以我下载了这个 SDK.我在谷歌上搜索过,甚至在 Stackoverflow 上搜索过.谷歌没有太大帮助,但我在这里找到了一篇文章> 这似乎与我的相似,但答案并没有多大公正.有谁知道为什么会发生此错误以及我如何摆脱它?

I don't know what more to say. I just downloaded this compiler yesterday and it was working fine. I wanted to upgrade from 32-bit programming to 64-bit so I could work with Assembly, so I downloaded this SDK. I searched on Google and even here on Stackoverflow. Google didn't help much, but I found a post here that seemed similar to mine but the answers didn't do much justice. Does anyone know why this error is occurring and how I can get rid of it?

推荐答案

检查 VC++ 目录,在 VS 2010 中可以在您的项目属性中找到这些目录.检查$(WindowsSdkDir)lib 是否包含在目录列表中,如果没有,手动添加.如果您正在为 X64 平台构建,您应该从平台"组合框中选择 X64,并确保 $(WindowsSdkDir)libx64 包含在目录列表中.

Check the VC++ directories, in VS 2010 these can be found in your project properties. Check whether $(WindowsSdkDir)lib is included in the directories list, if not, manually add it. If you're building for X64 platform, you should select X64 from the "Platform" ComboBox, and make sure that $(WindowsSdkDir)libx64 is included in the directories list.

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

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