🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53054

Re: gcc/ld doesn't like ___main

#53054
From: David Wood
Date: Mon, 23 Mar 1992 23:13
18 lines
1195 bytes
> I am getting the error message 
> 
>    ld: Undefined symbol
>       ___main
>    *** Error code 2
> 

	gcc adds a call to __main right at the beginning of main(). 
	I believe this is intended to support g++.  We just add
	an empty __main() to libgcc (or libc if you like). 

==============================================================================
David Wood 					wood@lab.nyu.edu
New York University				212-998-3363

		Brain. Brain. What is brain?
		   -- Kara the Eymorg, "Spock's Brain," stardate 5432.3.
==============================================================================
Technical Details
Message-ID: <59820001@acf3.NYU.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!cmcl2!acf3!wood
References: <1992Mar23.185542.9744@ux1.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,c78563cb8f8b38b
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-03-23 15:13:00 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!cmcl2!acf3!wood
From: wood@acf3.NYU.EDU (David Wood)
Subject: Re: gcc/ld doesn't like ___main
Message-ID: <59820001@acf3.NYU.EDU>
Sender: notes@cmcl2.nyu.edu (Notes Person)
Nntp-Posting-Host: acf3.nyu.edu
Organization: New York University
References: <1992Mar23.185542.9744@ux1.cso.uiuc.edu>
Date: Mon, 23 Mar 1992 23:13:00 GMT
Lines: 18