cannot execute binary file 的问题

来源:互联网 发布:mysql给root设置权限 编辑:程序博客网 时间:2024/06/06 05:53
写了个test.c

点击(此处)折叠或打开

  1. #include <stdio.h>

  2. void main()
  3. {
  4.     printf("hello world!\n");
  5. }
gcc -g -o test -c test.c后

./test: Permission denied

chmod +x test 后

bash: ./test: cannot execute binary file

但是 改成 gcc -g -o test test.c就行,搞不懂为什么要这样....以后再解决吧
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(222) | 评论(0) | 转发(0) |
0

上一篇:用eclipse通过JlinkGDB Server不能单步调试问题

下一篇:系统函数学习

相关热门文章
  • linux 常见服务端口
  • xmanager 2.0 for linux配置
  • 【ROOTFS搭建】busybox的httpd...
  • openwrt中luci学习笔记
  • 什么是shell
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
原创粉丝点击