delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/08/11:24:19

Date: Wed, 8 Nov 2000 09:19:03 -0700
From: Bill Currie <bill AT taniwha DOT org>
To: djgpp AT delorie DOT com
Subject: Re: How to prodce libraries?? *.a
Message-ID: <20001108091903.A20675@taniwha.org>
Mail-Followup-To: djgpp AT delorie DOT com
References: <3A092BFA DOT 392F25A0 AT free DOT fr>
Mime-Version: 1.0
X-Mailer: Mutt 1.0.1i
In-Reply-To: <3A092BFA.392F25A0@free.fr>; from kirill@free.fr on Wed, Nov 08, 2000 at 11:28:47AM +0000
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, Nov 08, 2000 at 11:28:47AM +0000, Kirill Pankratiev wrote:
> Hi all!
> 
> Does anybody know how to produce *.a files??
> ( mygraphics.c -> libgraph.a ???)

compile mygraphics.c to mygraphics.o as usual
then: ar rcus libgraph.a mygraphics.o

You can add more than one .o file on the same command line (~16kB worth,
depending on the transfer buffer size)

ar is the archive command

r - * replaice
c - create (don't warn if the .a file doesn't exist)
u - update (will only new/modified files)
s - * create symbol table

* important though s can be done in a separate step using ranlib

Bill
-- 
Leave others their otherness. -- Aratak

- Raw text -


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