This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: __main undefined symbol


On Wed, Feb 09, 2000 at 07:34:41AM -0600, William Gatliff wrote:
> Once you throw the -nostartfiles switch, you're free to do whatever you want
> startup-wise.  Probably should include a call to main() somewhere, of course.
> :^)

I use the -nostartfiles switch, but I avoid having a routine called "main" in
my code. I have my own crt0.S and my start routine is called "main_entry()",
which defeats the bogus call. Platform is embedded H8 and SH1.


 - Richard Hodson


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]