Subj : Re: creating 16 bit library To : borland.public.cpp.borlandcpp From : Jeff Kish Date : Wed Jun 02 2004 10:35 am On Tue, 1 Jun 2004 14:09:35 -0700, "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? > Maybe the functions that are just prototypes will flesh out the library, making it the right size.. Does the app run? Jeff Kish .