delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/08/00:08:17

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How do I create a Library ?
Date: Mon, 07 Apr 1997 06:10:19 -0700
Organization: Two pounds of chaos and a pinch of salt
Lines: 19
Message-ID: <3348F23B.7095@cs.com>
References: <5i8tor$33ah$1 AT www DOT iil DOT intel DOT com>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp226.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Amit Barak wrote:
> 
> How do i create a library 'libxxx.a' from a group of C++
> code files ?

gcc -c file1.cc file2.cc file3.cc
ar rvs libxxx.a file1.o file2.o file3.o

-- 
John M. Aldrich <fighteer AT cs DOT com>                      

* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
  causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
  again.
* It doesn't necessarily do it in chronological order, though.
 
                                       --- Douglas Adams

- Raw text -


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