Mail Archives: djgpp/1996/03/17/11:19:41
> > 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.
- Raw text -