linux中 cannot open output file permission denied

    新手在编译 执行文件make 时会出现这个问题  原因在与 arm-linux-gcc和编译的文件不在同一个目录中,例如

arm-linux-gcc在opt/fridenlyarm/toolschain/4.4.3/bin中 而你要编译文件是hello.c 他的目录应该在opt/fridlyarm/mini2440下 这样你编译时 就不会出错

make 就等于 arm-linux-gcc -o hello.c  hello

此时 执行./hello 会发现无法下执行二进制文件  说明编译成功

执行 file hello 会出现 32位的可执行arm文件 便可以下载到板子上了

最新评论

  1. 发布于:2016-10-07 14:11 回复
    Hi my name is Patricia and I just wanted to send you a quick message here instead of calling you. I came to your linux中 cannot open output file permission denied - page and noticed you could have a lot more visitors. I have found that the key to running a popular website is making sure the visitors you are getting are interested in your subject matter. There is a company that you can get keyword targeted traffic from and they let you try their service for free for 7 days. I managed to get over 300 targeted visitors to day to my site. http://hothor.se/1gj55     - Unsubscribe here: http://pandalove.info/3q0ey
    1. 发布于:2016-10-14 20:04 回复
      @Patricia:i am sorry,i don't know what did u say

sitemap