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