This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ARM gcc doesn't work


I have established the cross compile enviroment for ARM.
When I use the arm gcc to compile the C file,The following error accur

        [root@ARM-DEV test]# arm-linux-gcc first.c
        first.c:1: stdio.h: No such file or directory

However when I use the following method,it shows another error message:
        [root@ARM-DEV test]# arm-linux-gcc -c first.c -I /arm-linux/include
        [root@ARM-DEV test]# arm-linux-ld  first.o -L /arm-linux/lib/
        arm-linux-ld: warning: cannot find entry symbol _start; defaulting to
00008074
        first.o: In function `main':
        first.o(.text+0x10): undefined reference to `printf'

P.S. The first.c is the simplest C file,hello world.





--http://www.eyou.com
--稳定可靠的免费电子信箱  语音邮件  移动书签  日历服务  网络存储...亿邮未尽



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]