Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
-std=c99コンパイルごとにフラグを設定する必要がないように、フラグを設定できるファイルがあるかどうか疑問に思っていました。UbuntuでGCC 4.4を使用しています。
-std=c99
を呼び出す代わりに/usr/bin/gcc、 を使用します/usr/bin/c99。これは、C99 コンパイラを呼び出す単一 Unix 承認の方法です。gccUbuntu システムでは、これはフラグを追加した後に呼び出すスクリプトを指します-std=c99。これはまさにあなたが望むものです。
/usr/bin/gcc
/usr/bin/c99
gcc
どうalias gcc99= gcc -std=c99ですか?
alias gcc99= gcc -std=c99