本帖最后由 benrenxidu 于 2016-3-21 22:12 编辑
首先Hello,World!,已经安装好了GCC,[root
@localhost le]# vim hello.c
[root@localhost le]# gcc -o hello -c hello.c
hello.c: 在函数‘main’中:
hello.c:5:5: 错误:expected ‘;’ before ‘return’
return 0;
^
[root@localhost le]# vim hello.c
[root@localhost le]# gcc -o hello -c hello.c
[root@localhost le]# ls
hello hello.c
[root@localhost le]# ./hello
bash: ./hello: 权限不够
[root@localhost le]# chmod 777 hello
[root@localhost le]# ./hello
[root@localhost le]# gcc -o hello hello.c
[root@localhost le]# ./hello
[root@localhost le]#