Newsgroups: comp.os.msdos.djgpp Date: Wed, 20 Aug 1997 11:09:02 -0400 From: Insomnia Subject: Re: Newbie Question: How to compile a library? In-Reply-To: <33FA10AF.51B4@worldaxes.com> Message-ID: References: <33FA10AF DOT 51B4 AT worldaxes DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII NNTP-Posting-Host: degobah.core.binghamton.edu Organization: Binghamton University Lines: 19 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Tue, 19 Aug 1997, Glenn wrote: > I've looked through the FAQ, and other doumentation and I'm still > stumped on compiling a library. Could a kind soul point me to some > documentation on compiling a library? I think I have a clue (use > AR.exe?) Thanks for any help. > Your clue is right: ar rcs libmine.a mine1.o mine2.o mine3.o mine4.o This will create a library called libmine.a (if in the libpath will be linkable as gcc -lmine) from the objects mine1.o - mine4.o. You can only do this with object files (*.o). --Insomnia --Sleep is for the weak!