Date: Sun, 21 Jul 1996 15:04:06 +0400 (MSD) From: "Alexander V. Lukyanov" Message-Id: <199607211104.PAA13687@video.yars.free.net> To: brucef AT central DOT co DOT nz, eliz AT is DOT elta DOT co DOT il Cc: djgpp AT delorie DOT com Subject: Re: How do I create my own libraries ? > On Sat, 20 Jul 1996, Bruce Foley wrote: > > > BTW, I was wondering, when a program uses a function > > from a library, does the whole library get linked, or just > > the function you are calling? > > Only the function(s) you call are linked. Otherwise, every DJGPP program > will be at least the size of libc.a, which is 530KBytes. This is not quite right. The library consists of many object modules and only required modules are linked in. But libc modules usually contain only one library function.