Article View: gnu.gcc.help
Article #53051gcc/ld doesn't like ___main
From: Adam H. Lewenberg
Date: Mon, 23 Mar 1992 18:55
Date: Mon, 23 Mar 1992 18:55
14 lines
1086 bytes
1086 bytes
I am getting the error message
ld: Undefined symbol
___main
*** Error code 2
when I try to compile and link a C program using gcc.
I have no idea where ___main comes from; I cannot find
it in any of the source files or include files. What's
going on? I am using gcc 2.0.
Adam H. Lewenberg adam@symcom.math.uiuc.edu
--
University of Illinois at Champaign-Urbana, Dept. Of Mathematics
INTERNET: adam@symcom.math.uiuc.edu or a-lewenberg@uiuc.edu
Technical Details
Message-ID:
<1992Mar23.185542.9744@ux1.cso.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!news.iastate.edu!ux1.cso.uiuc.edu!adamShow 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 10:55:42 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!news.iastate.edu!ux1.cso.uiuc.edu!adam From: adam@symcom.math.uiuc.edu (Adam H. Lewenberg) Subject: gcc/ld doesn't like ___main Message-ID: <1992Mar23.185542.9744@ux1.cso.uiuc.edu> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: Math Dept., University of Illinois at Urbana/Champaign Distribution: usa Date: Mon, 23 Mar 1992 18:55:42 GMT Lines: 15