www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/03/17/12:08:04

Date: Sun, 17 Mar 1996 18:08:35 +0100 (MET)
From: "Christoph P. Kukulies" <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
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 <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Message-id: <199603171708.SAA10139@gilberto.physik.rwth-aachen.de>
MIME-version: 1.0

> 
> 
> > > 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

- Raw text -


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