且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

致命错误 LNK1104:无法打开文件“kernel32.lib"

更新时间:2022-05-05 21:43:35

检查 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.