简单的程序报错
时间:2010-12-23 来源:yjvijfhvk
ubuntu 10
程序
int main (int argc, char** argv)
{
printf( "hello,linux world\n");
return 0;
} 报错 helloword.c: In function ‘main’:
helloword.c:4: warning: incompatible implicit declaration of built-in function ‘printf’
{
printf( "hello,linux world\n");
return 0;
} 报错 helloword.c: In function ‘main’:
helloword.c:4: warning: incompatible implicit declaration of built-in function ‘printf’
原因是缺少头文件#include <stdio.h>。
相关阅读 更多 +