www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/13/22:13:56

Date: Thu, 13 Feb 1997 20:59:07 -0600 (CST)
From: Andrew Deren <aderen AT eecs DOT uic DOT edu>
To: abacon AT videotron DOT ca
cc: djgpp AT delorie DOT com
Subject: Re: Building library
In-Reply-To: <5dvp77$5ma$1@wagner.spc.videotron.ca>
Message-ID: <Pine.SUN.3.95.970213205705.2770B-100000@bert.eecs.uic.edu>
MIME-Version: 1.0

Try using something like this:
ar rvs libmylib.a file1.o file2.o file3.o

and then to compile your program use gcc myprog.c -lmylib

On Thu, 13 Feb 1997 abacon AT videotron DOT ca wrote:

> Hi, I am new to DJGPP and I have read the FAQ files, but there is
> something that I have not yet figured out... How do I create a library
> from a pool of object files. I have read somthing about the AR command
> but it says that it does not know the format of my object file. Have I
> missed something ( surely :-) )
> 
> 
> 
> 

- Raw text -


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