Subject: Re: How do i compile a .c or .o for executable ?
To: Denis St-Amand <dsa@dsa.net>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 06/21/1997 21:47:43
> 	I have a simple C programme that i wan to be executable.
> 	I made a .o with it but now i can not make a .exe !
> 	I simply don't know how.

Why ever would you want a .exe? This aint DOS. :-)

First of, you must have installed the comp files, as the compiler
(gcc or cc) is in there.

Then, if you have a program named program.c, to compile it, type

cc program.c -o program

You also probably want to look at man gcc, and look at a book on
make (as you'll see ALL the ways programs can get put together).

Also remember that "." has to be in your path for you to then
just type "program" and have it work. "./program" will always
work (until you cd elsewhere).

Take care,

Bill