一个非常菜的问题
nilo 2005-11-16 11:02:55 #include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, INT nCmdShow)
{int i=0;
for(;;) i++;
return 0;
}
程序写成这样为什么会编译不通过?编译EXE的时候出错的
LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Release/aa.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
什么意思,为什么会这样?