I have borland C++ builder 4, is there a way it can be set to program,compile, link and debug in C? :confused:
Printable View
I have borland C++ builder 4, is there a way it can be set to program,compile, link and debug in C? :confused:
I was frustrated by this also while using Borland. The strictest answer is no. I solved the problem by just downloading a C compiler, and now the majority of what I do is in C.
I have never used borland, but this is a complete guess, when you have to compile the programs, does it say .cpp under the file name? If so, change that to .c and the compiler "should" act on it as C code. I am only guessing and others might give you a better answer. But I use DevC++ and MSVC++ and this method works fine on them, although I do not write C programs anymore, only C++
Well, if you use GCC/MinGW/Dev-C++, the compiler will guess C/C++ from the file extension. I'm not sure if it's the same with Borland.
Make sure your source ends in .c. Try looking up some Borland documentation to see if there are any settings you should tweak. If you really want to stick to Borland like a captain to a boat, well...