[mips-gnu-discuss] Linux Syntax Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mips-gnu-discuss] Linux Syntax Error



I compiled a simple program as follows:

int main(void)
{
    int a = 1;
    return a;
}

When I run the program on a MIPS device running Linux v2.4 the program dies
with error "line 1: syntax error: "(" unexpected". Any ideas? I tried
compiling with -static flag but got the same error. Any ideas? I did the
same thing on an ARM device device with the ARM compiler and got the same
error. Any ideas? Googling the error has not yielded me any good results.

Thanks,
John