This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Should the passed command parameters result into the same error messages for a configuration test?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Markus Elfring <Markus dot Elfring at web dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 24 Mar 2013 18:36:20 +0000
- Subject: Re: Should the passed command parameters result into the same error messages for a configuration test?
- References: <51114C3A dot 3030806 at web dot de> <CAH6eHdTtokohy3w2QLxtq+psB-FL0ULPZV5dm_wQm5iYPwhMyw at mail dot gmail dot com> <514F347F dot 1010600 at web dot de> <CAH6eHdTiTrSWKV78TNGK9Yj9Ln7W8nHhnRbNeLu1VNTL+kBqRg at mail dot gmail dot com> <514F459A dot 2060405 at web dot de>
On 24 March 2013 18:27, Markus Elfring wrote:
>>> Can the given source file "Video1.cpp" be specified as the last parameter on the
>>> command line?
>>
>> No.
>
> I do not see so far that link options must be passed as last parameters.
> http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Invoking-GCC.html
Look harder:
You can mix options and other arguments. For the most part, the order
you use doesn't matter. Order does matter when you use several options
of the same kind; for example, if you specify -L more than once, the
directories are searched in the order specified. *** Also, the
placement of the -l option is significant. ***