【解析新特性】300W单路输出工业电源>>
电子产品世界 » 论坛首页 » 综合技术 » 基础知识 » arm,gcc 新装的arm-gcc总报这样的错误,请问有谁知道是怎么回事??

共2条 1/1 1 跳转至

arm,gcc 新装的arm-gcc总报这样的错误,请问有谁知道是怎么回事??

院士
2006-12-22 22:43:00    评分
arm,gcc 新装的arm-gcc总报这样的错误,请问有谁知道是怎么回事??



关键词: 新装的     装的     arm-gcc     总报     这样     错误         

院士
2006-12-22 22:43:00    评分
2楼
问 新装的ARM-gcc总报这样的错误,请问有谁知道是怎么回事??
[root@localhost Phsm]# make
cd src ; make
make[1]: Entering directory `/root/ser/Phsm/src'
ARM-elf-gcc -Wall -g -Wstrict-prototypes  -I../include -I../../include    -Wl,elf2flt -c -o Phsm.o Phsm.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
ARM-elf-gcc -Wall -g -Wstrict-prototypes  -I../include -I../../include    -Wl,elf2flt -c -o PhsmPro.o PhsmPro.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
ARM-elf-gcc -Wall -g -Wstrict-prototypes  -I../include -I../../include    -Wl,elf2flt -c -o PhsmData.o PhsmData.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
ARM-elf-gcc -Wall -g -Wstrict-prototypes  -I../include -I../../include    -Wl,elf2flt -c -o PhsmLinux.o PhsmLinux.c
ARM-elf-gcc: elf2flt: linker input file unused since linking not done
make[1]: Leaving directory `/root/ser/Phsm/src'
mv  src/*.o obj
cd test; make
make[1]: Entering directory `/root/ser/Phsm/test'
ARM-elf-gcc main.o ../obj/Phsm.o ../obj/PhsmData.o ../obj/PhsmPro.o ../obj/PhsmLinux.o ../../source/msgQueue.o ../../source/Timer.o -o main
/usr/local/lib/gcc-lib/ARM-elf/2.95.3/libgcc.a(__main.o)(.text+0xc4): In function `__do_global_ctors':
: undefined reference to `__CTOR_LIST__'
/usr/local/lib/gcc-lib/ARM-elf/2.95.3/libgcc.a(__main.o)(.data+0x0): undefined reference to `__DTOR_LIST__'
collect2: ld returned 1 exit status
make[1]: *** [main] Error 1
make[1]: Leaving directory `/root/ser/Phsm/test'
make: *** [all] Error 2 1: 看看elf2flt的使用ARM-elf-gcc: elf2flt: linker input file unused since linking not done
你可以在命令行下直接运行这个程序,应该就可以知道什么问题了 2: 好像没有问题不知道在哪里看的东西,讲在编译内核时总会出2个错误。

共2条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]