vc6.0编译问题

[复制链接]
查看11 | 回复1 | 2009-3-18 20:17:04 | 显示全部楼层 |阅读模式
#incluede
int main()
{
std::cout << "Hello World!\n"
return 0;
}
*********************************************************
--------------------Configuration: test2 - Win32 Debug--------------------
test2.exe - 0 error(s), 0 warning(s)
*************************************************
没提示有错误,可是运行时出现“Cannot execute program”的提示。请问这是为什么?
Compiling...
Abc.cpp
Linking...
LINK : fatal error LNK1104: cannot open file "libcpd.lib"
Error executing link.exe.
abc.exe - 1 error(s), 0 warning(s)
按照您提示的改了,可是出现上述错误。

回复

使用道具 举报

千问 | 2009-3-18 20:17:04 | 显示全部楼层
2个错误。 1: #incluede 应该为 #include 2: std::cout << "Hello World!\n" 后面差分号 std::cout << "Hello World!\n"; 如果不是这个俩问题,那要看是不是你先执行了1个,没有关闭又执行了一遍。 不行就从新建工程。 你的VC安装时可能出现了错误。 看下Microsoft Visual Studio\VC98\Lib下看有没libcpd.lib没有的话,建议你从新安装完整版的VC6.0。或者我传1个给你...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行