Message-Id: <199810010003.UAA21611@delorie.com> Comments: Authenticated sender is From: "George Foot" To: AMITEC Date: Thu, 1 Oct 1998 01:01:14 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: help! Reply-to: mert0407 AT sable DOT ox DOT ac DOT uk CC: djgpp AT delorie DOT com X-mailer: Pegasus Mail for Win32 (v2.42a) 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