www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/19/19:30:36

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Did someone write LIBRARY in DJGPP ?
Date: Wed, 20 Sep 2000 00:21:45 +0100
Organization: Customer of Energis Squared
Lines: 27
Message-ID: <o7sfss86g09dgme7g3t7cket6i7mpcoe73@4ax.com>
References: <8q8ld8$iik$1 AT info DOT cyf-kr DOT edu DOT pl>
NNTP-Posting-Host: modem-52.actinium.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news6.svr.pol.co.uk 969405773 13450 62.136.64.52 (19 Sep 2000 23:22:53 GMT)
NNTP-Posting-Date: 19 Sep 2000 23:22:53 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Rafał Maj" <r_maj AT poczta DOT onet DOT pl> wrote:

> If You have ever written any library in DJGPP, than can You help me ?

You don't need a library for this.

> I know that I can use 'ar' program for making library, but real *hate*
>   to read docs...

Who does?

> ...and my question is really very simple.

It has a simple solution too, which you'll find in the docs.

> 1) How can I step-by-step convert lib.cc into library, so everytime I'll
> compile prg.cc, DJGPP will not re-compile lib.cc, but only link my program
> with lib.o (or lib.a, or whatever)

You need a makefile.  There is a section in the DJGPP users guide on
makefiles.

http://www.delorie.com/djgpp/doc/ug

> 2) I should #Include files used by my library only in lib.cc ?

You mean pc.h and dos.h?  Yes (for the example you posted).

- Raw text -


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