我的vc++ 6.0有怪毛病啊,大家来看看,好几天了啊!
写了好几个小程序,编译通过,run时,Link不起来。
#include <iostream>
//begins programe execution
int main()
{
std::cout <<"welcome to c++!\n";
return 0;
}
Compiling...
c2.cpp
Linking...
c2.obj : error LNK2005: _main already defined in c1.obj
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/my c.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
等了好几天了,救我命啊!