ubuntu的gcc 不能用了,什么原因啊?

zy1040703800 zy1040703800 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

yl@ubuntu:~$ gedit 1.c
yl@ubuntu:~$ gcc 1.c
1.c: In function ‘main’:
1.c:10: error: ‘for’ loop initial declarations are only allowed in C99 mode
1.c:10: note: use option -std=c99 or -std=gnu99 to compile your code
yl@ubuntu:~$ ./a.out
bash: ./a.out: 没有该文件或目录
...全文

相关推荐

评论 15
收藏 已收藏
分享
返回顶部