www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/01/13:30:37

Newsgroups: comp.os.msdos.djgpp
From: fredex AT fcshome DOT stoneham DOT ma DOT us (Fred Smith)
Subject: Re: Making Libraries
Organization: None!
Message-ID: <EvEwM2.9ys@fcshome.stoneham.ma.us>
References: <35995863 DOT F2E5A25E AT iname DOT com>
Date: Wed, 1 Jul 1998 10:46:50 GMT
Lines: 26
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Plamen Petkov (pbpetkov AT iname DOT com) wrote:
: Hi,

: I am realtively new to djgpp and I have simple problem. I need to create
: a (static) library, i.e. libgame.a.

: My question is: What switches do I need to use to make a library,
: instead of an executable?

: Thank you for your help.

: -Aleko

	cc -c foo.c bar.c
	ar rv foobar.a foo.o bar.o

compiles two .c files and stuffs the resulting .o files into a library
(.a file).

Fred
--
---- Fred Smith -- fredex AT fcshome DOT stoneham DOT ma DOT us -----------------------------
   "For the word of God is living and active. Sharper than any double-edged 
   sword, it penetrates even to dividing soul and spirit, joints and marrow; 
              it judges the thoughts and attitudes of the heart."  
---------------------------- Hebrews 4:12 (niv) ------------------------------

- Raw text -


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