Message-ID: <3AEF1B8F.77971C22@ezbooks.com.au>
From: Elizabeth Taylor <mail@ezbooks.com.au>
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.minix
Subject: compiling
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 23
Date: Wed, 02 May 2001 06:24:47 +1000
NNTP-Posting-Host: 203.27.214.6
X-Complaints-To: abuse@telstra.net
X-Trace: nsw.nnrp.telstra.net 988752406 203.27.214.6 (Wed, 02 May 2001 07:26:46 EST)
NNTP-Posting-Date: Wed, 02 May 2001 07:26:46 EST
Organization: Customer of Telstra Big Pond Direct
Path: news.adfa.edu.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!intgwpad.nntp.telstra.net!nsw.nnrp.telstra.net!news.acay.com.au!cromer30.intercoast.com.au
Xref: news.adfa.edu.au comp.os.minix:37287

Does anyone know a good tutorial on compiling?

I split a main file into four parts (a main and three function) and put
appropriate references in each part which allowed them to compile.  I
compile to .o stage using cc -c etc and ended up with the four .o
files.  I then tried to link with ld *.o etc and got a list of symbol
referencing errors:

symbol        first ref'd to in

atoi            1.o
exit            3.o
printf        1.o
scanf        1.o
strlen        3.o

However, I removed my a.out file and compiled the four using cc etc from
scratch and ended up with a new a.out which worked fine?

I cannot figure it out and my text book, man etc don't seem to help me
understand what I am doing wrong - so any direct help or a pointer to a
compiler tutorial which would help will be most welcome.

