Question

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?

Was it helpful?

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.

OTHER TIPS

Is there some reason why you're using such an old compiler? Turbo C was last released in the early 1990s, if I remember correctly.

I might suggest downloading the free Visual Studio Express Edition which is a much more modern compiler and you will find many more people here who are willing to help. It also comes with good documentation and it's easier to search the net for articles and help for it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top