How to compile a program of c Language manually on MS DOS instead of Borland

AsadYarKhan picture AsadYarKhan · Sep 8, 2011 · Viewed 13.1k times · Source

I need to compile a program in MS DOS. I have Borland Editor, I can compile it using Alt+F9 but the things is what it do at the backend. I want to compile it in MS DOS. I m trying this:

c:\tc\bin>tcc -o hello.exe hello.c

where hello.c is is my file, hello.exe the file I want to produce. Its not working, what shouldI do? and also please tell me also how do I compile .cpp file manually from MS DOS.

Answer

cyco130 picture cyco130 · Sep 8, 2011

If I remember correctly, Borland/Turbo C compiler's command line options didn't look like gcc options. You should try tcc /? for a command line help.