www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/27/02:19:24

Date: Thu, 27 Jun 1996 09:11:53 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Bob Platko <platko AT ix DOT netcom DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Libraries
In-Reply-To: <31D2093E.72AA@ix.netcom.com>
Message-Id: <Pine.SUN.3.91.960627090748.9882K-100000@is>
Mime-Version: 1.0

On Thu, 27 Jun 1996, Bob Platko wrote:

> Does anyone know how to make a libray using DJGPP?
> 
> I have a bunch of C code that I want to compile in a 
> library, so I can prevent myself from getting confused
> with so many files and so much code(since I keep each
> function in a different .c file)

You need to use the `ar' program.  To build a library, you invoke `ar' 
with a command line like this:

	ar rvs mylib.a file1.o file2.o file3.o

This creates a library named `mylib.a' and puts the named *.o object 
files into it.

For more details, read the `ar' docs which come with DJGPP by typing this 
from the DOS prompt:

	info binutils ar

- Raw text -


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