1> LINK:致命错误LNK1104:无法打开文件'kernel32.lib'ERROR帮助请 [英] 1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib' ERROR help please

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

问题描述

我正在运行visual studio的2017社区版,每当我尝试运行我的程序时,我都会收到错误,

I am running visual studio's 2017 community edition and whenever i try to run my program I get the error, 

1> ------ Build build :项目:实验前14,配置:调试Win32 ------
$
1> Main.cpp

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

1>完成建筑项目"Pre-Lab 14.vcxproj" - 失败。

==========构建:0成功,1失败,0最新,0跳过==========

1>------ Build started: Project: Pre-Lab 14, Configuration: Debug Win32 ------
1>Main.cpp
1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
1>Done building project "Pre-Lab 14.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

如果有任何帮助,谢谢。

Thanks if any help is given.

推荐答案

您好DustGuppy,

Hi DustGuppy,

感谢您在此发布。

>>我正在运行visual studio的2017社区版,每当我尝试运行我的程序时,我都会收到错误,

对于这种情况,我建议你检查下面这两件事。

For this case, I suggest you check these two things below.

1。安装vs 2017时检查是否安装了Windows SDK。

1. Check if you have installed Windows SDK when you install vs 2017.

2。检查你的属性 - > VC ++目录,如果在库目录中设置了WindowsSDK_LibraryPath。

2. Check your property->VC++ Directories, if there has set the WindowsSDK_LibraryPath in library directories.

希望这对你有帮助。

最好此致,

Sera Yu


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

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