本文介绍了是否所有版本的GCC支持gcc的@file选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我记得一些旧版本的GCC不支持@file选项。我不是很肯定。可能有人给与此相关的任何指针?

As far as I remember some older gcc versions don't support the @file option. I am not very sure. Could someone give any pointers related to this?

有关引用

   @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源位置:

This was committed to gcc source here:

2005-11-23  Mark Mitchell  <[email protected]>

    * 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.

据发布,这应该已经使它成为GCC 4.1

According to release history, this should have made it into GCC 4.1

这篇关于是否所有版本的GCC支持gcc的@file选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 12:13