On Tuesday, August 1, 2017, 10:31:15 AM PDT, Ray Foulkes <address@hidden> wrote:
> I am totally baffled as to what cc -o is doing there. Surely it should be ld??
> and then the -o is for "output" i.e. create "edit" as an executable.
The above command is correct. On the GNU Linux and BSD systems, usually
one has the compiler call the linker using '-o', because calling ld directly is
actually pretty complicated and easy to get wrong. Using the compiler to call the
linker is easier and less error prone.
This is a question about the compiler, 'gcc' or whatever, and not 'make' specifically.