找回密码
 注册
搜索
查看: 705|回复: 1

请教开发板上的可执行文件不能运行的问题

[复制链接]
发表于 2009-11-20 19:58:33 | 显示全部楼层 |阅读模式
请大侠解决这个问题:在linux pc机上由arm-linux-gcc 编译的可执行文件下载到开发板上运行时出现错误提示
用arm-linux-gcc -o test   test.c时
# ./test                                                                        
./test: No such file or directory//出现这个提示

后用arm-linux-gcc -static test.c -lstdc++ -o test
# ./test                                                                        
Segmentation fault   //出现这个错误提示

程序程序代码如下:
#include  
int main()
{
  printf("hello ubuntu!\\n");

   return 0;
}

pc机环境为ubuntu9.10   2.6内核     开发板内核为2.4
偶用minicom用zmodem协议传到开发板上
是不是因为pc机用的是2.6内核,开发板用的是2.4内核导致的?
还是minicom传输协议的问题?
或者是。。。。。?
希望解答下,在这里谢过!!
[/COLOR][/COLOR]
发表于 2010-4-23 09:14:24 | 显示全部楼层
帮不上!!
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-5-14 00:24 , Processed in 0.049116 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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