delorie.com/archives/browse.cgi | search |
From: | "Rafał Maj" <r_maj AT poczta DOT onet DOT pl> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Did someone write LIBRARY in DJGPP ? |
Date: | Tue, 19 Sep 2000 23:17:50 +0200 |
Organization: | Academic Computer Center CYFRONET AGH |
Lines: | 33 |
Message-ID: | <8q8ld8$iik$1@info.cyf-kr.edu.pl> |
NNTP-Posting-Host: | d-94-53-07.cyfronet.krakow.pl |
X-Trace: | info.cyf-kr.edu.pl 969398504 19028 149.156.1.167 (19 Sep 2000 21:21:44 GMT) |
X-Complaints-To: | news AT cyf-kr DOT edu DOT pl |
NNTP-Posting-Date: | 19 Sep 2000 21:21:44 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, If You have ever written any library in DJGPP, than can You help me ? I know that I can use 'ar' program for making library, but real *hate* to read docs... ...and my question is really very simple. I have following files : FILE "lib.h" void fun1(); int fun2(int x); FILE "lib.cc" #include <pc.h> #include <dos.h> void fun1() { sound(1000); delay(10); nosound(); } int fun2(int x) { return x*2+5; } FILE "prg.cc" #include "lib.h" int main() { fun1(); int a=fun2(1); return 0; } 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) 2) I should #Include files used by my library only in lib.cc ? Thanks Rafal
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |