#include<stdio.h>
void main()
{
printf("ffff");
}
如下图所示错误
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16Debug/jianbaio.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
解决办法:
#include<stdio.h>
#pragma comment(linker, "/subsystem:console")
void main()
{
printf("ffff");
}