共2条
1/1 1 跳转至页
arm,gcc 新装的arm-gcc总报这样的错误 请问有谁知道是怎么回事??

问
新装的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: .
[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: .
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【EEPW电子工程师创研计划】技术变现通道已开启~ | |
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
电流检测模块MAX4080S被打赏10分 | |
【我踩过的那些坑】calloc和malloc错误使用导致跑飞问题排查被打赏50分 | |
多组DCTODC电源方案被打赏50分 | |
【我踩过的那些坑】STM32cubeMX软件的使用过程中的“坑”被打赏50分 | |
新手必看!C语言精华知识:表驱动法被打赏50分 | |
【我踩过的那些坑】杜绑线问题被打赏50分 | |
【我踩过的那些坑】STM32的硬件通讯调试过程的“坑”被打赏50分 | |
【我踩过的那些坑】晶振使用的问题被打赏100分 | |
【我踩过的那些坑】电感选型错误导致的处理器连接不上被打赏50分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 |