Mail Archives: djgpp/1998/09/30/20:03:39
On 30 Sep 98 at 6:29, AMITEC wrote:
> I am using a GNU c compiler for the first time. Does the compiler produce
> object code ? How do I link object code to a library ? Is there a make
> utility ?
The output and input depend upon what you tell it to do.
Normally it can tell by looking at the file extensions what the
input files are. The output could be preprocessed, compiled to
assembly language, assembled to object format, or linked into
an executable. The switches are, in brief:
`-E': stop after preprocessing
`-S': stop after compiling (assembly language output)
`-c': stop after assembling (object file output)
Otherwise it goes all the way to a linked executable.
To link in libraries, put "-lX", replacing `X' with the name of
the library. Put this after all object files, and after any
other libraries that use this library.
You can download GNU Make from the `v2gnu' directory, filename
for current version: mak377b.zip
For "getting started" information, read `readme.1st'. For
information on everything, consult the FAQ. For information
on GCC's options type "info gcc invoking". For information on
GNU Make, after installing it type "info make".
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -