Subj : Re: How do you link DLLs? To : borland.public.cpp.borlandcpp From : waking@idirect.com (Wayne A. King) Date : Sat Jul 26 2003 10:00 pm On Sat, 26 Jul 2003 12:56:31 -0600, "Ian Hopkins" wrote: >I have written a program which uses the pthreads win32 library. I now want >to compile a program but I don't know how to include DLLs on the command >line with bcc32. You do not specify a DLL directly when linking. The actual DLL gets linked to and loaded dynamically at program execution. When building your program, you should specify either an import lib or a .def file to identify the DLL's exports. You can create an import lib from the DLL by running the implib utility against it. Typically, the import lib for a dll has the same filename as the dll but with a .lib extension. -- Wayne A. King (ba994@torfree.net, wayne.king@ablelink.org, waking@idirect.com, Wayne_A_King@compuserve.com) .