cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/20/15:20:56

Newsgroups: comp.os.msdos.djgpp
Date: Wed, 20 Aug 1997 11:09:02 -0400
From: Insomnia <insomnia AT degobah DOT core DOT binghamton DOT edu>
Subject: Re: Newbie Question: How to compile a library?
In-Reply-To: <33FA10AF.51B4@worldaxes.com>
Message-ID: <Pine.SUN.3.93.970820110529.6921C-100000@degobah>
References: <33FA10AF DOT 51B4 AT worldaxes DOT com>
MIME-Version: 1.0
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

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!

- Raw text -


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