Syntax error: "(" unexpected

Dan Kegel dank@kegel.com
Wed Oct 26 12:58:00 GMT 2005


Pramod P K wrote:
> I've used crosstool-0.38 with
> gcc-3.4.3
> glibc-2.3.3
> linux-2.6.10 for arm-9tdmi-linux-gnu
> 
> At the end, it gave "done" with no errors.
> But when i compile a simple prog :
> 
> #include<stdio.h>
> main()
> {
> int i=20;
> printf("scand num:%d",i);
> return 0;
> }
> 
> using /opt/crosstool/gcc-3.4.3-glibc-2.3.3/arm-9tdmi-linux-gnu/bin/arm-9tdmi-linux-gnu-gcc
> in the target board, it gave:
> Syntax error:  "(" unexpected

Maybe because you compiled arm-9tdmi-linux-gnu-gcc with
an x86 compiler, but are trying to run it on an arm processor

If you want to compile a compiler that will run on
the target, that's a bit more work.  See
http://www.kegel.com/crosstool/current/doc/crosstool-howto.html#canadian
- Dan

-- 
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list