开发者

Setting std=c99 flag in GCC

开发者 https://www.devze.com 2022-12-19 15:00 出处:网络
I was wondering if there were any files in which I could set the -std=c99 flag, so that I would not have to set it for every compilat开发者_Go百科ion. I am using GCC 4.4 on Ubuntu.Instead of calling /

I was wondering if there were any files in which I could set the -std=c99 flag, so that I would not have to set it for every compilat开发者_Go百科ion. I am using GCC 4.4 on Ubuntu.


Instead of calling /usr/bin/gcc, use /usr/bin/c99. This is the Single-Unix-approved way of invoking a C99 compiler. On an Ubuntu system, this points to a script which invokes gcc after having added the -std=c99 flag, which is precisely what you want.


How about alias gcc99= gcc -std=c99?

0

精彩评论

暂无评论...
验证码 换一张
取 消