CROSS COMPILE:arm-eabi-gcc -static -o hello hello.c

时间:2013-07-01 12:15:19

标签: arm embedded-linux cross-compiling

在发生错误时交叉编译(应用程序)“arm-eabi-gcc -static -o hello hello.c”

hello.c:1:18: error: stdio.h: No such file or directory
hello.c:2:19: error: stdlib.h: No such file or directory
hello.c:3:19: error: string.h: No such file or directory
hello.c:4:19: error: fcntl.h: No such file or directory
hello.c:5:20: error: unistd.h: No such file or directory
hello.c:6:23: error: sys/types.h: No such file or directory
hello.c:7:22: error: sys/stat.h: No such file or directory
hello.c:8:23: error: sys/ioctl.h: No such file or directory

` 我能够交叉编译内核模块。

2 个答案:

答案 0 :(得分:1)

如果您尝试在linux机器中交叉编译用户程序,则不应使用arm-eabi-gccarm-linux-gnueabi-gcc

答案 1 :(得分:0)

你的交叉编译器坏了。获得更好的工具链,你有很多选择: