rootlinger 发表于 2005-10-26 11:10:47

如何单独使用arm-elf-gcc工具编译程序

有许多程序,要在4510上执行,需要用交叉编译工具, 但具体怎么应用了? 因有个程序,我在linux下用gcc编译通过,但改用arm-elf-gcc时, 就出现一下错误:
# make
arm-elf-gcc -O2 -Wall -Wstrict-prototypes -c -o pcommand.o pcommand.c
pcommand.c:11: stdio.h: ?????????
pcommand.c:12: stdlib.h: ?????????
pcommand.c:13: string.h: ?????????
pcommand.c:14: ctype.h: ?????????
pcommand.c:15: sys/stat.h: ?????????
pcommand.c:16: time.h: ?????????
pcommand.c:17: sys/time.h: ?????????
pcommand.c:18: sys/types.h: ?????????
pcommand.c:22: unistd.h: ?????????
pcommand.c:23: sys/socket.h: ?????????
pcommand.c:24: sys/param.h: ?????????
pcommand.c:25: netdb.h: ?????????
pcommand.c:26: netinet/in.h: ?????????
pcommand.c:27: arpa/inet.h: ?????????
pcommand.c:29: signal.h: ?????????
pcommand.c:30: errno.h: ?????????
In file included from pcommand.c:33:
pid-pd.h:13: sys/param.h: ?????????
In file included from pcommand.c:34:
pdconfig.h:14: sys/param.h: ?????????
make: *** Error 1

这是怎么回事,怎么一下子缺这么多库文件
:oops:

sxwglxq 发表于 2005-10-26 11:48:24

同问:):)

lumit-support-1 发表于 2005-10-26 15:34:37

最简单的办法就是参考一下uClinux包里面带的应用程序的Makefile!!把它的Makefile修改一下就应该可以了!!

rootlinger 发表于 2005-10-26 15:48:34

:oops: 多谢!
页: [1]
查看完整版本: 如何单独使用arm-elf-gcc工具编译程序