Article View: gnu.gcc.help
Article #50537Help! Newbie in distress
From: Chris Gray
Date: Wed, 22 Sep 1993 07:27
Date: Wed, 22 Sep 1993 07:27
56 lines
2558 bytes
2558 bytes
I must be making a fool of myself, this must be something incredibly
simple, but I'm at the banging-head-on-wall stage and need someone to
point out the simple thing I'm overlooking.
I'm trying to install gcc on an Atari STe using MultiTOS and the Gemini
shell (for the sake of completeness. I don't think my problem is
specific to either). I wrote a program some of you may have seen
before:
#include <stdio.h>
int main(void)
{
puts("hello world");
return 0;
}
and tried to compile it. Many hours, several environment variables and
a few shell scripts later I reached the following point:
gcc-atariST version 2.4.4 Patchlevel 1
c:\gnu\bin\gcc-cpp.ttp -lang-c -v -undef -D__GNUC__=2 -Datarist -Dgem -Dmc68000 -D__atarist__ -D__gem__ -D__mc68000__ -D__atarist -D__gem -D__mc68000 hello.c c:/tmp/cc160.i
GNU CPP-atariST version 2.4.4 Patchlevel 1
c:\gnu\bin\gcc-cc1.ttp c:/tmp/cc160.i -quiet -dumpbase hello.c -version -o c:/tmp/cc160.s
GNU C version 2.4.4-atariST Patchlevel 1 (68k, MIT syntax) compiled by GNU C version 2.4.4.
c:\gnu\bin\gcc-as.ttp -v -mc68000 -o c:/tmp/cc1601.o c:/tmp/cc160.s
GNU assembler version 1.38 atariST PatchLevel 4
c:\gnu\bin\gcc-ld.ttp -v -o hello.tos c:\gnu\gnulib\crt0.o c:/tmp/cc1601.o -lgnu
`gcc-ld' linker Patchlevel 33 for GNU, Atari ST version (Nov 10 1992 20:18:20)
c:/tmp/cc1601.o: Undefined symbol ___main referenced from text
and gave up. What is gcc(-ld) trying to tell me? What is (counts the
underscores) ___main when it's at home?
Sorry to waste your time,
Chris
__________________________________________________________________________
Chris Gray cgra@se.alcbel.be Compu$erve: 100065.2102
Ignore my broken mailer - the addresses above are the only truth
__________________________________________________________________________
Alle menschen sind Auslaender. Fast ueberall.
Technical Details
Message-ID:
<2010@se.alcbel.be>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!mcsun!ub4b!alcbel!se.alcbel!btma74.nohost.nodomain!cgraShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,9f32e08cc950dbc7,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-09-22 01:36:00 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!mcsun!ub4b!alcbel!se.alcbel!btma74.nohost.nodomain!cgra From: cgra@btma74.nohost.nodomain (Chris Gray) Newsgroups: gnu.gcc.help Subject: Help! Newbie in distress Message-ID: <2010@se.alcbel.be> Date: 22 Sep 93 07:27:35 GMT Sender: guest@se.alcbel.be Reply-To: cgra@se.alcbel.be Lines: 56 Nntp-Posting-Host: btmwd9