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 compilation. I am using GCC 4.4 on Ubuntu.
相关问题
- Multiple sockets for clients to connect to
- What is the best way to do a search in a large fil
- glDrawElements only draws half a quad
- Index of single bit in long integer (in C) [duplic
- Equivalent of std::pair in C
How about
alias gcc99= gcc -std=c99
?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 invokesgcc
after having added the-std=c99
flag, which is precisely what you want.