天嵌 ARM开发社区

 找回密码
 注册
查看: 2532|回复: 1

编译有问题,make: arm-linux-gcc: Command not found

[复制链接]
daisyzone 发表于 2010-12-16 19:47:38 | 显示全部楼层 |阅读模式
我的电脑上交叉编译器是4.3.3,按照手册,arm-linux-gcc -v能行,但是make测试程序时出错,make: arm-linux-gcc: Command not found。
程序是apps_20091208.tar包里的Hello-C程序,Makefile也是包里自带的。
Makefile如下:
CROSS=arm-linux-
                                                                                
all: hello-c
                                                                                
hello-c:hello-c.c
        $(CROSS)gcc -g -o hello-c hello-c.c
#       $(CROSS)strip hello-c
clean:
        @rm -vf hello-c *.o *~
~
天嵌_support1 发表于 2010-12-17 10:51:50 | 显示全部楼层
1# daisyzone


没有设置编译器的路径
export一下,把它的路径加到 PATH变量中
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-21 02:35 , Processed in 2.041370 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表