c - 所有 gcc 版本都支持 gcc 的 @file 选项吗?

标签 c gcc linker compiler-options

据我记得一些较旧的 gcc 版本不支持 @file 选项。我不太确定。有人可以提供与此相关的任何指示吗?

供引用

   @file
   Read command-line options from file.  The options read are inserted
   in place of the original @file option.  If file does not exist, or
   cannot be read, then the option will be treated literally, and not
   removed.

   Options in file are separated by whitespace.  A whitespace
   character may be included in an option by surrounding the entire
   option in either single or double quotes.  Any character (including
   a backslash) may be included by prefixing the character to be
   included with a backslash.  The file may itself contain additional
   @file options; any such options will be processed recursively.

谢谢

最佳答案

这已提交给 gcc 源代码:

2005-11-23  Mark Mitchell  <mark@codesourcery.com>

    * doc/invoke.texi: For man pages, include gcc-vers.texi.
    List @file in the option summary.  Include the libiberty
    documentation for @file.
    * gcc.c (main): Call expandargv.
    * Makefile.in (gcc-vers.texi): Define srcdir.

根据发布history ,这应该已经进入 GCC 4.1

关于c - 所有 gcc 版本都支持 gcc 的 @file 选项吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15106937/

相关文章:

c++ - 如何在 C++ 中以编程方式禁用故障转储?

c++ - 函数原型(prototype)和函数实现签名不一致地使用 const 可以吗?

c - 奇怪的C编码风格

c - 将变量从 .bss 移动到 .data 是否危险?

c - 海湾合作委员会ARM : get actual value from SP register

c - 第一个示例由于编译器错误而无法编译

c - 我如何使用 gdb 来了解数组中槽的大小?

c++ - 链接失败,怎么回事?

linux - linux上列出共享库依赖的编程方式

macos - 使用完整路径链接到 Mac 上的动态库