delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/10/11/13:31:53

Date: Mon, 11 Oct 93 11:48:37 CDT
From: "Jeremy Mathers" <pynq AT midway DOT uchicago DOT edu>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Making libraries

Just to clarify it beyond all doubt, I thought I would include some text
DJ wrote some time ago on the subject:

>> Can I make my own libraries of dgpp-compiled objects?  What do I
>> need?

>Nothing you don't already have.  Use "ar".

>Example:

DJ wrote:

>This is how it's supposed to work:

>        gcc -c myfile.c
>        ar rv libme.a myfile.o
>        ranlib libme.a
>        copy libme.a \djgpp\lib
>        gcc -v prog.c -lme -o prog

>Is this what you're doing?

>Gcc sees -lXX and looks for libXX.a in $LIBRARY_PATH.



- Raw text -


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