Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!rpi!uupsi!sunic!dkuug!diku!fedtmule From: fedtmule@diku.dk (Jens Markussen) Newsgroups: comp.lang.c Subject: Splitting Turbo C library modules Keywords: TurboC, libraries, modules Message-ID: <1991Jan12.222446.26899@odin.diku.dk> Date: 12 Jan 91 22:24:46 GMT Sender: news@odin.diku.dk (Netnews System) Distribution: comp Organization: Institute of Computer Science, U of Copenhagen Lines: 18 Hi, I'm writing a collection of Turbo-C functions. These are still all contained in one single source-file (makes it easy - sharing variables and so forth). Compiling this file naturally generates one object file. Now, I'm trying to make a library-file (.lib-file) out of these functions. Using the TLIB program adds the entire object file as one module. This means that my programs, even if using only a few of the functions, will need to link the entire module into the executable file. I'm looking for a way to add my functions, with the functions acting as separate modules (same style that Borlands uses in their libraries (cs.lib..)), but without having to split my sources-file into lots of small files. Any clues as to how this could be done, would be appreciated.... --------------------------------------------------------------------------- Jens Markussen (fedtmule@diku.dk) ---------------------------------------------------------------------------