Subj : Re: creating 16 bit library To : borland.public.cpp.borlandcpp From : Jogy Date : Thu Jun 03 2004 10:37 am Dparker wrote: > I am porting a program from MSVC 1.52 to Borland 5.02. I use the command > line to compile. I used TLIB to create a library of functions (tf6lib.lib). > My main() function is in tf6.cpp. > > When I type BCC -w- tf6.cpp tf6lib.lib > > The program appears to compile correctly then shows a message indicating > Turbo Link is running. Everything ends with no error messages. This program > when compiled under MSVC 1.52 did not use the library I created, but instead > included those functions in header files. > > The MSVC 1.52 version that included the files instead of calling them as > library functions creates an .exe over 230K. > The Borland 5.02 version that calls those files as library functions creates > an .exe that is just over 30K. > > Since there are functions called from main() that I have yet to incorporate > into the .lib file, I know that it can't be linking correctly because those > functions don't exist except as prototypes. This is my first attempt at > trying to create a .lib and link it in. Is there any good references out > there that can help guide me? > > Hello, I don't think you can use directly BCC to create a .LIB file. With BCC you compile an .obj file, and then you can use the TLIB utility to put it in a .LIB file. It will be easier to do it from the IDE, not the command line. -- Jogy http://www.jogy.net/ jogy@sirma.bg .