我编写了一个简单的hello world 程序,makefile也写了
但是make后出现这样的错误,是怎么回事??
arm-elf-gcc -static hello.c -o hello
/usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a(__main.o)(.text+0xc4): In functio n `__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 r eference to `__DTOR_LIST__'
collect2: ld returned 1 exit status
make: *** [hello] 错误? 1
ps:自己装了个arm-elf-gcc2.95.3,不知道怎么会编译不过去,如何设置,请高手指点,谢谢!!