python 2.7.12 on Linux behaving differently than on Windows
Chris Angelico
rosuav at gmail.com
Mon Dec 5 14:01:30 EST 2016
On Tue, Dec 6, 2016 at 5:50 AM, BartC <bc at freeuk.com> wrote:
> So how do I do:
>
> gcc *.c -lm
>
> The -lm needs to go at the end.
>
> Presumably it now needs to check each parameter seeing if it resembles a
> file more than it does an option? And are options automatically taken care
> of, or is that something that, unlike the easier wildcards, need to be
> processed explicitly?
Actually, gcc processes a series of "things", where each thing could
be a file, a library definition, etc. So it recognizes "-lm" as a
library designation regardless of where it exists. It does NOT have to
be at the end specifically - you can have more file names after it.
ChrisA
More information about the Python-list
mailing list