- 论坛徽章:
- 0
|
我在应用的一个程序
在readme中介绍可以用arm-linux-toolchain来编译
在ARM (iPAQ, Zaurus)中运行
而我想把这个程序移植到uclinux,在lpc2210中运行
在uclinux中用的是arm-elf-tools
我试图用arm-elf-tools对源程序进行编译
但出现了错误
我不清楚错误是否是因为用了不同交叉编译工具导致的
想请大家帮忙看一下
我是一个新手
不太清楚在不同的交叉编译工具是否可以完成
如果不可以的话,那么移植的工作应该怎样进行呢
谢谢!
下边是编译最后一段的信息:
arm-elf-gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DARM -c -o libipq-arm.o libipq.c
arm-elf-gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DARM -c -o icmp-arm.o icmp.carm-elf-gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DARM -c -o min_ipenc-arm.o min_ipenc.c
arm-elf-gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DARM -c -o locality-arm.o locality.c
arm-elf-gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DARM -o aodvd main-arm.o list-arm.o debug-arm.o timer_queue-arm.o aodv_socket-arm.o aodv_hello-arm.o aodv_neighbor-arm.o aodv_timeout-arm.o routing_table-arm.o seek_list-arm.o k_route-arm.o aodv_rreq-arm.o aodv_rrep-arm.o aodv_rerr-arm.o packet_input-arm.o packet_queue-arm.o libipq-arm.o icmp-arm.o min_ipenc-arm.o locality-arm.o
/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: *** [aodvd-arm] 错误 1 |
|