On Tue, Dec 6, 2016 at 5:50 AM, BartC <b...@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 -- https://mail.python.org/mailman/listinfo/python-list