Mail Archives: djgpp/1996/06/27/02:19:24
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 -