Subj : Re: Compiling C code with Borland C++ To : borland.public.cpp.borlandcpp From : Ed Mulroy [TeamB] Date : Wed Dec 29 2004 05:27 pm Borland compilers are happy with C code. They way you configure them to comple as C instead of C++ is to make the file name extension .C instead of ..CPP See if this page helps with creating your DLL. http://www.mulroy.org/howto10.htm If not, then try entering at the beginning of the sequence: http://www.mulroy.org/howto.htm Note that what you are using is the set of command line tools from C++ Builder version 5. You are not using the old, 1997 Borland C++. C++ Builder groups all have the word 'cppbuilder' in their name and questions about that product are seen by a larger audience of people familiar with that product if they are posted in a newsgroup related to the product. For example: borland.public.cppbuilder.commandlinetools .. Ed Follow-ups set to borland.public.cppbuilder.commandlinetools > Keith Woodard wrote in message > news:41d2d76c@newsgroups.borland.com... > > 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 to compile and link > my C file? I have three .s files that reference the functions in > startstunnel.c. > > Compile: cl /c startstunnel.c > Link: link startstunnel.obj /dll /export:startstunnel /export: > killprocess > > P.S. I am from Louisiana. .