wzlovegxf 发表于 2005-5-16 10:59:13

word unexpected (expecting ")"

各位老大,我在cygwin下面写了一个hello.c程序,用arm-elf-gcc进行编译,输入命令是:
arm-elf-gcc -Wl,-elf2flt -o hello hello.c
出现的错误是:
/usr/local/bin/arm-elf-gcc: 1: Syntax error: word unexpected (expecting ")")

请问各位高手怎么解决,在这小弟不胜感激。

/*************************hello.c********************/
#include <stdio.h>

int main(void)
{
int i;

for(i = 0; i < 6; i++)
{
printf("i = %d ",i);

printf("Hello, embedded linux!\n");
}
return 0;
}
页: [1]
查看完整版本: word unexpected (expecting ")"