Monday, 31 December 2012

Re: [gccsdk] Help with gas

In message <20121230165053.5732A27C7C@orac.inputplus.co.uk>
Ralph Corderoy <ralph@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@aaug.net

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment