liushi123 发表于 2010-8-17 20:50:59

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

本帖最后由 飞凌-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失败什么原因啊!

飞凌-fatfish 发表于 2010-8-18 08:40:47

贴出程序源码和编译器版本来吧

liushi123 发表于 2010-8-18 10:44:27

回复 2# 飞凌-fatfish


    #include<stdio.h>

   int main()
      {
            printf("Hello World\n");
            return 0;
      }
    编译器使用3.4.1
页: [1]
查看完整版本: 关于OK2440 III开发板运行程序出错问题