我在LINUX下建好了ARM-ELF-GCC交叉编译环境,但执行以下编译时,出现以下问题:
#arm-elf-gcc -o hello hello.c
/usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o):In function"__do__global_ctors":
__main.o(.text+0xc4):undefined reference to'__CTOR_LIST'
/usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o)(.data+0x0):collect2:1d returned exit status
这是什么问题,帮帮我
//hello.c
#include "stdio.h"
main(void)
{
printf("hello world");
}