From: Jason Green 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: 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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" 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).