delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/23/02:45:46

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Creating a library
Date: Tue, 23 Dec 1997 08:13:53 +0100
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 37
Message-ID: <349F64B1.FDD6BED1@LSTM.Ruhr-UNI-Bochum.De>
References: <01bd0e3b$6831dec0$55eea8c1 AT default> <349E1188 DOT 8D304664 AT LSTM DOT Ruhr-UNI-Bochum DOT De> <349F4B58 DOT 470F AT cs DOT com>
NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

John M. Aldrich wrote:
> 
> 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.

Don't know. I always use svr, because it reminds me of System V Release.
And as ar tells me verbosely what it is doing, it doesn't really
seem to matter that the 'v' is before 'r'. But if
you give me a good idea how to memorize rvs, I'll switch
to it ;-)


-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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