582 Subj : Runtime library? To : borland.public.cpp.borlandcpp From : James Kim Date : Wed Jul 30 2003 10:44 am Thanks for pointing out about the runtime library. I am quite new to Borland C++ and I assumed that necessary libraries are automatically included. Here is my question then. How do I know which runtime library to include? Does Borland C++ know how to locate runtime libraries if I specify the filename at the end of a linking command? Thanks in advance. "Wayne A. King" wrote: > On Tue, 29 Jul 2003 14:47:40 -0700, James Kim > wrote: > > >Yes, I do know how to link with the startup code provided by Borland C++4.52. > > I didn't ask about the *startup* code. > I asked why you're not linking to the *runtime* library. > > You are now showing this: > > >tlink /m /v /s startup.obj test.obj main.obj, main.exe, main.map > > In your old message you showed this: > > >C:\BC45\BIN>tlink /m/v/s/c c0l test main,my_main,,cl > > The c0l is the compiler's startup code module. > The cl at the end is the runtime library. Using your own > startup code doesn't eliminate the need for a runtime > lib if you're going to use functions which only it provides > (such as new, etc.) > > -- > Wayne A. King > (ba994@torfree.net, wayne.king@ablelink.org, > waking@idirect.com, Wayne_A_King@compuserve.com) . 0