今天在安装centos7后写了一个C语言的helloworld,因为我安装的centos版本内置了gcc,所以使用gcc hello.c -o hello编译文件,生成hello文件。然后使用./hello执行hello文件,报错显示bash: ./hello: cannot execute binary file

  • 在网上一番搜索过后,还是没有针对我的问题的解决办法。然后我使用yum upgrade升级了所有软件,然后再次编译C文件,居然可以执行了。也许是因为gcc没有更新的缘故吧。

相关文章:

  • 2021-08-14
  • 2022-12-23
  • 2022-02-19
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-08-23
猜你喜欢
  • 2021-12-09
  • 2021-08-11
  • 2021-08-01
  • 2021-06-22
  • 2021-10-09
  • 2021-09-19
  • 2021-09-08
相关资源
相似解决方案