vs2010编写C程序出现error LNK2001 error LNK1120 求助
代码如下:
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
printf("hello word!\n");
system("pause");
return 0;
}
错误信息:
1>------ 已启动生成: 项目: hello, 配置: Debug Win32 ------
1>生成启动时间为 2011-1-29 13:02:13。
1>InitializeBuildStatus:
1> 正在对“Debug\hello.unsuccessfulbuild”执行 Touch 任务。
1>ManifestResourceCompile:
1> 所有输出均为最新。
1>LINK : error LNK2001: 无法解析的外部符号 _mainCRTStartup
1>F:\C_pro\hello\Debug\hello.exe : fatal error LNK1120: 1 个无法解析的外部命令
1>
1>生成失败。
1>
1>已用时间 00:00:00.81
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========