严重错误LNK1104:无法打开文件"kernel32.lib" [英] fatal error LNK1104: cannot open file '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 .我在Google上甚至在Stackoverflow上都进行了搜索. Google并没有太大帮助,但我在此处似乎与我的相似,但是答案并没有多大的道理.有谁知道为什么会发生此错误以及如何消除该错误?
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)\lib\x64
包含在目录列表中.
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)\lib\x64
is included in the directories list.
这篇关于严重错误LNK1104:无法打开文件"kernel32.lib"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!