Date: Thu, 27 Jun 1996 09:11:53 +0200 (IST) From: Eli Zaretskii To: Bob Platko Cc: djgpp AT delorie DOT com Subject: Re: Libraries In-Reply-To: <31D2093E.72AA@ix.netcom.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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