era*_*ran 1 linux gcc g++
在Linux上,有没有办法从文件传递参数到gcc.那就是给像compile.args这样的文件
% cat compile.args -g3 -ggdb -pedantic -pedantic-errors -Wall -Werror -O0 vec1.cpp -o vec1
然后将此文件提供给g ++/gcc.我可以使用cat compile.args |来做到这一点 xargs g ++,是他们的其他方式吗?gcc是否支持此功能?
谢谢.
Bas*_*tch 5
是的,跑吧 gcc @compile.args
gcc @compile.args
归档时间:
14 年,3 月 前
查看次数:
866 次
最近记录: