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. 这是单 Unix 批准的调用 C99 编译器的方式。在 Ubuntu 系统上,这指向一个脚本,该脚本gcc在添加-std=c99标志后调用,这正是您想要的。
/usr/bin/gcc
/usr/bin/c99
gcc
怎么样alias gcc99= gcc -std=c99?
alias gcc99= gcc -std=c99