链接:致命错误LNK1104:无法打开文件'kernel32.lib' [英] LINK: fatal error LNK1104: cannot open file 'kernel32.lib'
问题描述
大家好...
我是Visual C ++的新手.我有Visual C ++ Express Edition2010.我制作了一个简单的C ++程序,并尝试通过"Visual Studio命令提示符"进行编译.它已正确编译,并且还创建了目标文件,但程序显示链接错误 如下
i am new to visual c++. i have visual c++ express edition 2010. i made a simple c++ program and tried to compile it through "visual studio command prompt". it was compiled properly and object file was also created but program showed a linking error as follows
链接:致命错误LNK1104:无法打开文件"kernel32.lib"
我程序的源代码是
#include< iostream>
使用命名空间std;
int main()
{
cout<< "C ++是强大的编程功能.";
返回0;
}
#include <iostream>
using namespace std;
int main()
{
cout << "C++ is power programming.";
return 0;
}
请提出解决方案.
subhra
推荐答案
你好.
您正在使用哪个版本的Windows OS?也许是Windows7?
Which version of Windows OS You are using? Maybe Windows7?
致谢.
Mateusz
这篇关于链接:致命错误LNK1104:无法打开文件'kernel32.lib'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!