分页: 1 / 1

gcc下编译错误

发表于 : 2007-06-15 13:32
miukal
ubuntu7.04 下用gcc编译

#include<stdio.h>
int main()
{
printf("hello\n");
return 0;
}

出现如下
test: file not recognized: File format not recognized
collect2: ld 返回 1

发表于 : 2007-06-15 13:47
jiakuant
哈哈,和我一样菜阿。

发表于 : 2007-06-15 13:49
miukal
请问你解决了吗?

发表于 : 2007-06-15 16:06
lpzgbd
请问你这个 程序的文件名是什么呢?要把文件名改为.c的后缀名才行呀

发表于 : 2007-06-16 7:36
miukal
谢谢楼上的,解决了:-)