Compiling... Compiling resources... Linking... LINK : warning LNK4068: /MACHINE not specified; defaulting to X86 LINK : fatal error LNK1561: entry point must be defined 如何解决
Linking... MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup D:\hello2\Debug\hello2.exe : fatal error LNK1120: 1 unresolved externals如何解决
#include <iostream.h>
using namespace std;void main()
{
cout<<"hello"<<endl;
}
不论是否加入using namespace std;
不论是否.h
都不能在空项目中的DEBUG中通过,何故?
Compiling resources...
Linking...
LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
LINK : fatal error LNK1561: entry point must be defined 如何解决
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
D:\hello2\Debug\hello2.exe : fatal error LNK1120: 1 unresolved externals如何解决
console与普通win32窗口程序有不同的编译选项,手工设置太麻烦