Subj : Re: Compiling C code with Borland C++ To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Wed Dec 29 2004 11:31 am Keith Woodard wrote: > Thanks for your comprehensive answer. Here is my problem. I need to >compile a DLL using C code. Below is one example taken from a whitepaper >that I am using. Under Borland 5.5, what switches and syntax would you use Then you are in the wrong Newsgroup to begin with. This group is for the Pre-Builder versions. Even though the compiler says Borland C++ 5.5, it is acutally the compiler from Builder 5, and so your questions should be addressed to groups with the word cppbuilder in its name. In this case, borland.public.cppbuilder.commandlinetools would have been the proper place. If you need more help, ask over there. >to compile and link my C file? I have three .s files that reference the >functions in startstunnel.c. Don't know what an .s file is. >Compile: cl /c startstunnel.c >Link: link startstunnel.obj /dll /export:startstunnel /export:killprocess Don't know what the cl and link commands are. We use bcc32 and ilink32 There should be a help file called BCB5TOOL.HLP In there are all the commandline syntax and options. You will probably want more flags, but the dll flag is bcc32 -WD startstunnel.c Search this and the cppbuilder groups for messages from Ed Mulroy He has posted many times (some this month) on the topic of compiling dlls. >P.S. I am from Louisiana. Is that an appology? .