Splitting library modules in Turbo C 2.0
Jens Markussen
fedtmule at diku.dk
Sun Jan 13 09:14:16 AEST 1991
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 at diku.dk)
---------------------------------------------------------------------------
--
-------------------------------------------------------------------------
Jens Markussen
(fedtmule at diku.dk)
More information about the Comp.lang.c
mailing list