www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/29/09:51:52

From: fredex AT fcshome DOT stoneham DOT ma DOT us
Message-Id: <199609291013.GAA07737@fcshome.stoneham.ma.us>
Subject: Re: lib building utility
To: bhodge AT gpu1 DOT srv DOT ualberta DOT ca (B Hodge)
Date: Sun, 29 Sep 1996 06:13:25 -0400 (EDT)
Cc: djgpp AT delorie DOT com
In-Reply-To: <52kju3$vho@pulp.ucs.ualberta.ca> from "B Hodge" at Sep 29, 96 01:38:11 am

Thinking furiously, B Hodge wrote:
> 
> : Anyway, if your source code is not executable, RHIDE will create a =
> : library with the option "Compile Menu-Link". Don't forget to specific a =
> : name under "Project-main targetname".
> 
> Okay, but obviously there has to be a way of producing a library (.A) file
> from the command line somehow.  Does anyone know how?
> 

Sure. You should check out the information on 'ar' in info.

but briefly, given three object files a.o, b.o,and c.o with which you
want to build a library, you'd do it like this:

	ar rvs mylib.a a.o b.o c.o

the first time you do this (i.e., if mylib.a doesn't exist yet) you
could do:

	ar crvs mylib.a a.o b.o c.o

Fred

-- 
-------------------------------------------------------------------------------
 .----    Fred Smith    /                        Office: fred AT computrition DOT com 
( /__  ,__.   __   __ /  __   : /                                 508-663-2524 
 /    /  /   /__) /  /  /__) .+'           Home: fredex AT fcshome DOT stoneham DOT ma DOT us 
/    /  (__ (___ (__(_ (___ / :__                                 617-438-5471 
-------------------------------- Jude 1:24,25 ---------------------------------

- Raw text -


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