天嵌 ARM开发社区

 找回密码
 注册
查看: 2110|回复: 4

gcc arm-linux-gcc问题

[复制链接]
zr_714 发表于 2010-10-15 21:20:12 | 显示全部楼层 |阅读模式
我在PC上写一个.sh 在PC上和在开发板上都可以运行显示
但是为什么我在PC上写一个.C 用gcc 和arm-linux-gcc编译两个目标文件 gcc的可以在PC上运行显示 但是 arm-linux-gcc的在开发板上不可以显示啊?

PC显示:
root@zrf-ubuntu:/opt/lianxi# ./text1
hello word
root@zrf-ubuntu:/opt/lianxi# ./text2
bash: ./text2:无法执行二进制文件

开发板显示:
[root@zr2440 lianxi]#./text1
./text1: line 1: syntax error: unexpected word (expecting ")")
[root@zr2440 lianxi]#./text2
Segmentation fault
天嵌_support1 发表于 2010-10-16 10:23:59 | 显示全部楼层
1# zr_714


arm-linux-gcc 的版本是多少呢?
要和编译内核用的一样
 楼主| zr_714 发表于 2010-10-16 20:11:34 | 显示全部楼层
2# embedsky_lxt


4.3.3怎么看一样不一样呢?
daisyzone 发表于 2010-12-16 20:16:48 | 显示全部楼层
我也遇到同样的问题,关注!
machoe 发表于 2010-12-16 21:06:59 | 显示全部楼层
arm-linux-gcc -v
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-5 22:31 , Processed in 1.017618 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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