delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/23/00:47:05

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Creating a library
Date: Tue, 23 Dec 1997 00:25:44 -0500
Organization: Two pounds of chaos and a pinch of salt.
Lines: 21
Message-ID: <349F4B58.470F@cs.com>
References: <01bd0e3b$6831dec0$55eea8c1 AT default> <349E1188 DOT 8D304664 AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp229.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Thomas Demmer wrote:
> 
> If you work with RHIDE, stuff them into a project
> and change the targetname to libfoo.a
> If you prefer commandline, use
> ar -svr libfoo.a *.o (or whatever matches your object files)

Shouldn't that be "ar -rvs libfoo.a *.o"?

I may be wrong, but I think the order of the switches matters to 'ar'. 
The 'r' should be the first switch on the command line, because it tells
'ar' how to behave.  You can use 's' standalone, but the 'ar' docs seem
to say that 'r' should be first.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "To be 'matter of fact' about the    |
|       aka Fighteer I       | world is to blunder into fantasy--   |
|   mailto:fighteer AT cs DOT com   | and dull fantasy at that, as the real|
| http://www.cs.com/fighteer | world is strange and wonderful." -LL |
---------------------------------------------------------------------

- Raw text -


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