This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

__main?


Hi, 

I'm trying to compile a freestanding application with gcc 2.95.2
Unfortunally one of my routines is called "main", and somehow gcc seems to
handle that one specially :), however in my case this just a function like
every one else.

To be exact, after compiling that file containing the main function it stops
at linking stage with an unresolved link to "__main". I've searched
everything on this, and I'm quite certain that I never explicity refer to it with
underscores. Did gcc create that? or what is it? the _REAL_ entry point for
normal OS based applications?

btw: -ffreestanding did not help....

Regards,
- Axel

-- 
Sent through GMX FreeMail - http://www.gmx.net


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