[gccsdk] Help with gas

John Tytgat John.Tytgat at aaug.net
Mon Dec 31 06:55:21 PST 2012


In message <20121230165053.5732A27C7C at orac.inputplus.co.uk>
          Ralph Corderoy <ralph at inputplus.co.uk> wrote:

> Without -c for `compile only' the C compiler kicks off the
> linker/loader, the `ld' in the output, to produce a finished executable.
> ld observes the C runtime tries to call main() but no main() is defined.

Indeed.  For further better understanding what's going on, you can use
gcc's -v option.  That will show all executing subprocesses : preprocessing,
compiling, assmebling and/or linking.

John.
-- 
John Tytgat, in his comfy chair at home
John.Tytgat at aaug.net




More information about the gcc mailing list