delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/25/05:53:05

Date: Mon, 25 Aug 1997 12:51:41 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Brad Fidler <BF AT rwdi DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Scitech MGL library help
In-Reply-To: <s3fd599d.002@pob.rwdi.com>
Message-ID: <Pine.SUN.3.91.970825124916.3327A-100000@is>
MIME-Version: 1.0

On Fri, 22 Aug 1997, Brad Fidler wrote:

> but none of the MGL libs start with 'lib'
> (ie:  mglfx.a  not libmglfx.a ) doesnt gcc expect
> all lib files its linking in to start with 'lib' ?

No, you only need the library name to begin with `lib' if you want to 
pass it to the linker with the -l switch.  E.g., -lfoo will cause the 
linker to look for libfoo.a.

However, you can pass the library on the command line verbatim, as if it 
were another object file, and then it can have any name you fancy.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019