This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
__main?
- To: gcc-help at gcc dot gnu dot org
- Subject: __main?
- From: Axel Kittenberger <Anshil at gmx dot net>
- Date: Fri, 26 Jan 2001 10:24:44 +0100 (MET)
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