Search code examples
cwindowspathturbo-ctcc

How to set the Turbo C path in windows?


How to set the turbo c path in windows globally so that i can compile and run my C programs (which are in other drives) using command prompt in windows XP? Can any one tell me how to get commands at every drive in the command prompt just by typing in

c:\tcc  

in command prompt in windows and turbo c environment?


Solution

    • Go to the Start Menu, then Control Panel.
    • Choose the "System" applet.
    • Click on the "Advanced" tab.
    • Click on "Environment Variables"
    • Find the "Path" variable, and press "Edit"
    • Append a semicolon, then the path to Turbo C

    For setting the include and library paths, go to the same place, but instead of editing the "Path" variable, create a new variable called "INCLUDE", and set it to the location of your turboc "\include" directory; and create one called "LIB" and one called "CLASSPATH", and set them to your turboc "\lib" directory.