Article View: gnu.gcc.help
Article #51682HELP ld error no __main
From: DESROCHERS GARY FREDERIC
Date: Thu, 22 Apr 1993 14:48
Date: Thu, 22 Apr 1993 14:48
32 lines
1549 bytes
1549 bytes
[ Article crossposted from gnu.g++.help ]
[ Author was DESROCHERS GARY FREDERIC ]
[ Posted on Wed, 21 Apr 1993 15:52:01 GMT ]
I am trying to compile a program so that I can create a flat file
afterwards. I want to do a gcc -c and then a ld -N -T 0. I am using a DEC
station but if I do the ld -N -T 0 (by the way I have taken off the -N -T 0
and it dos the same thing) I get.
ld:
Undefined:
__main
*** Error code 1
If I send it to gcc with gcc myfile.o -o myfile I cannot create a flat
file out of it but the reference of __main is fixed.
Is there anywhere or any library that gcc uses that I can use with the
normal linker?
Gary
--
Gary F. Desrochers
gdesroch@slate.mines.colorado.edu
I be gone in 4 months. Anyone know a good internet site in New Hampshire.
--
Gary F. Desrochers
gdesroch@slate.mines.colorado.edu
I be gone in 4 months. Anyone know a good internet site in New Hampshire.
Technical Details
Message-ID:
<1993Apr22.144835.20386@slate.mines.colorado.edu>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!cs.utexas.edu!asuvax!ncar!vexcel!copper!slate!gdesrochShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,6d6efe20840dcde5,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-04-22 08:52:28 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!cs.utexas.edu!asuvax!ncar!vexcel!copper!slate!gdesroch From: gdesroch@slate.mines.colorado.edu (DESROCHERS GARY FREDERIC) Newsgroups: gnu.gcc.help Subject: HELP ld error no __main Message-ID: <1993Apr22.144835.20386@slate.mines.colorado.edu> Date: 22 Apr 93 14:48:35 GMT Organization: Somewhere over the rainbow Lines: 32 X-Newsreader: TIN [version 1.1 PL9]