打印

arm-elf-gcc编译不出能在skyeye上运行的代码

arm-elf-gcc编译不出能在skyeye上运行的代码

想在skyeye运行有ncurses界面的linxu和window跨平台通信软件,但是用arm-elf-gcc编译始终出错,不知道问什么,其中的提示如下:
编译ncurses程序的时候
ncurses[root@mmdb ncurses]# arm-elf-gcc  ncurses.c -lncurses
ncurses.c:1: ncurses.h: ?????????
说找不到 ncurses.h,gcc就可以,我怀疑是不是arm-elf-gcc 不支持ncurses啊

还有编译基于sock通信的代码也是不成功!

[root@mmdb src]# arm-elf-gcc client1.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): undefined reference to `__DTOR_LIST__'
collect2: ld returned 1 exit status


附件里面是源代码,希望大家帮忙看看是什么problem?
附件: 您所在的用户组无法下载或查看附件
hello

TOP