Linux Syntax Error

John Westing john.blank.westing at gmail.com
Wed Feb 10 16:15:33 UTC 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/mips-gnu-discuss/attachments/20100210/e9ec7fb9/attachment.html>


More information about the mips-gnu-discuss mailing list