Newsgroups: comp.os.minix
Subject: Re: a stupid question...
References: <910sak$edc$1@azure.nl.gxn.net> <KOWY5.693$XY5.15511@insync>
Organization: Rochester Institute of Technology, Rochester, NY
From: aje9383@osfmail.isc.rit.edu (Andrew Erickson)
NNTP-Posting-Host: grace.isc.rit.edu
X-Original-NNTP-Posting-Host: grace.isc.rit.edu
Message-ID: <3a35625a@news.isc.rit.edu>
Date: 11 Dec 2000 18:25:14 -0500
X-Trace: 11 Dec 2000 18:25:14 -0500, grace.isc.rit.edu
Lines: 33
XPident: aje9383
X-Original-NNTP-Posting-Host: 129.21.4.100
XPident: Unknown
Path: news.adfa.edu.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!intgwpad.nntp.telstra.net!codeine.org!diablo.netcom.net.uk!netcom.net.uk!cpk-news-hub1.bbnplanet.com!news.gtei.net!howland.erols.net!bloom-beacon.mit.edu!news.kodak.com!news-nysernet-16.sprintlink.net!news.sprintlink.net!news.isc.rit.edu!aje9383
Xref: news.adfa.edu.au comp.os.minix:36294

In article <KOWY5.693$XY5.15511@insync>,
Arlin Collins  <arlin@beanix.metronet.com> wrote:
>TS <harjan@hjscholing.myweb.nl> wrote:
>: just how do i compile an executeble?
>
>: like
>: ! cc test.c
>: and then?

../a.out

(The compiler, by default, produces an executable called a.out when you
don't give it an output filename.  If you have the current directory in
your path, then just

a.out

will work.)

>  uh... maybe:   how do I execute a compiled program?
>
>  $ cc test.c -o test
>  $ ./test

As a gentle reminder, the dreaded god Murphey will see to it that, once
you get in the habit of using 'test' as a program name, you will happen
to omit the ./ in the above command on some system where the system bin
directories are earlier in the path than the current working directory.
For this reason, it is wise to always invent a more creative, or merely
different, name.

-- 
Andrew Erickson
