cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/13/22:37:53

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Building library
Date: Thu, 13 Feb 1997 20:01:30 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 27
Message-ID: <3303E39A.7DC@cs.com>
References: <5dvp77$5ma$1 AT wagner DOT spc DOT videotron DOT ca>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp201.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

This is the proper syntax to use 'ar':

  ar rvs libmylib.a file1.o file2.o file3.o ...

This creates 'libmylib.a' and puts the indicated object files into it. 
'ar' only recognizes DJGPP-compiled object code, however, so you can't
just take Borland object code and expect it to work in DJGPP.  For full
information on converting 16-bit code to DJGPP, read chapters 17 and 18
of the FAQ (v2/faq210b.zip).

-- 
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT com>

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>++ W++ N++ o+>++ K? w(---)
O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+(++) tv+() b+++ DI++ D++ G>++
e(*)>++++ h!() !r !y+()
------END GEEK CODE BLOCK------

- Raw text -


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