From: "Hugo Jose Ferreira" Newsgroups: comp.os.msdos.djgpp Subject: Library Problem ! Help ! Date: Sun, 14 Dec 1997 00:27:26 -0500 Lines: 33 Message-ID: <66v8v3$8s2$1@duke.telepac.pt> NNTP-Posting-Host: 194.65.176.9 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi ! I've got a problem with the following: I've started to port my graphics libraries to DJGPP. In order to do that, I've created a .h file which contained every routine... for example, video.h contains: (bla bla bla) void waitvretrace() { (bla bla bla) } void copyscr(byte *source, byte *dest) { (bla bla bla) } (bla bla bla) This was Ok, until I've started to port everything i programmed under 16bit TP&ASM, and noted that my executables files were getting large... I've realised that, every function I've putted in the .h file, was being compiled into the executable, even if it isn't used by the program... My question is: HOW CAN I FIX THIS !!!! Maybe putting all the functions in the header file ISN'T the proper way of doing a library... But... my question is: how can I tell the linker to not include the functions I'm not using ?!?!? Thanks In Advance