查看: 15963|回复: 2

关于OK2440 III开发板运行程序出错问题

7

主题

21

回帖

35

积分

liushi123 发表于 2010-8-17 20:50:59 | 显示全部楼层 |阅读模式
本帖最后由 飞凌-fatfish 于 2010-8-18 08:39 编辑

开发板上电后执行
# mount -t nfs -o nolock 192.168.0.105:/root/share /tmp
nfs warning: mount version older than kernel

# cd /tmp
# ls
hello    hello.c
# ./hello
Segmentation fault
上面的hello是加上 -shared选项编译的,加-static编译后运行提示-sh: ./hello: not found
nfs warning: mount version older than kernel怎么解决?
./hello失败什么原因啊!
回复

使用道具 举报

25

主题

8842

回帖

5593

积分

飞凌-fatfish 发表于 2010-8-18 08:40:47 | 显示全部楼层
贴出程序源码和编译器版本来吧
回复 支持 反对

使用道具 举报

7

主题

21

回帖

35

积分

楼主| liushi123 发表于 2010-8-18 10:44:27 | 显示全部楼层
回复 2# 飞凌-fatfish


    #include<stdio.h>

   int main()
        {
              printf("Hello World\n");
              return 0;
        }
    编译器使用3.4.1
回复 支持 反对

使用道具 举报

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

本版积分规则