Date: Sun, 17 Mar 1996 18:08:35 +0100 (MET) From: "Christoph P. Kukulies" Subject: Re: Object libraries? In-reply-to: <199603171614.TAA03974@video.yars.free.net> To: lav AT video DOT yars DOT free DOT net (Alexander V. Lukyanov) Cc: jcaser01 AT ns DOT fiu DOT edu, kuku AT gilberto DOT physik DOT RWTH-Aachen DOT DE, djgpp AT delorie DOT com Reply-to: Christoph Kukulies Message-id: <199603171708.SAA10139@gilberto.physik.rwth-aachen.de> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit > > > > > Can someone please let me know how to create a "library" of object > > > files for use with djgpp. I remember a while ago someone posted this > > > info but I've been out of the loop for a couple of months and I > > > forgot the procedure. > > > > Normally you do that using ld like: > > > > ld -r -x -o yourlib.o *.o > > > > (note the command line length limit so you might want to use some > > indirect file technique/response file depending on the type of make > > you are using). ndmake uses: > > > > >respfile *.o > > ld -r -x -o yourlib.o @respfile > > This is not quite that was needed, I think. This will produce one large > object file, not a library. To create a library use ar. See info > for more details. > I couldn't imagine he was asking such an obvious thing :-) --Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de