From: "Rafał Maj" Newsgroups: comp.os.msdos.djgpp Subject: own library Date: Fri, 15 Sep 2000 18:53:27 +0200 Organization: Academic Computer Center CYFRONET AGH Lines: 34 Message-ID: <8ptk3q$aos$1@info.cyf-kr.edu.pl> NNTP-Posting-Host: d-94-53-18.cyfronet.krakow.pl X-Trace: info.cyf-kr.edu.pl 969036730 11036 149.156.1.178 (15 Sep 2000 16:52:10 GMT) X-Complaints-To: news AT cyf-kr DOT edu DOT pl NNTP-Posting-Date: 15 Sep 2000 16:52:10 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, can anybody explain how to write own library ? NOW I HAVE : >>> file lib.h that contains full code of my library, like : void fun1() { /*...*/ } void fun2(int a) { /*...*/ } >>> main file prog.cc that #includes all library : #include #include "lib.h" main() { /*...*/ } Because of this, each time I compile prog.cc, entire lib.cc is recompiled, with is quite big waste of time I WANT TO HAVE : >>> file lib.h that contains only definitions of functions : void fun1(); void fun2(int a); >>>file lib.o that will NOT be recompiled every time >>>and prog.cc Can You explain to me, how to do it ? Thanks in advance, Rafal