Friday, February 11

How to install Turbo C on Windows 7(32bit & 64bit)

  • To install Turbo C on Windows 7 32bit :
As I`ve posted an article about installing Turbo C on Windows 7 32bit.So you can get this issue resolved here.
  • To install Turbo C on Windows 7 64bit :
Many of my friends having Windows 7 64bit, are using Virtual Window installing softwares to run Turbo C by using Windows XP.But here`s the simple solution for this.
This problem can be resolved using a mere 1.38MB software named DOSBox thus saving your lot of pc hardware and software utilization. So inorder to get things work we need to follow these steps :
  • Install the software DOSBox. download here
  • Download and extract TC. download here
  • Make sure that the DOSBox and TC are in the same directory and the TC.exe application is in the Folder TC>>BIN>>TC.exe for this to work.
  • Run DOSBox
  • Type the following commands at the command prompt mount d c:\

  • Now you should get a message which says: Drive D is mounted as a local directory c:\
  • Type d: to get into d:

  • Next follow the commands below:
    cd tc


    cd bin


    and tc or tc.exe [This starts your Turbo C]
    • [Important Step] In Turbo C Editor, go to Options>Directories>Change Directories>Change the source of TC to the source directory [D](i.e. virtual D: refers to original c:\).
    • Check out this video to implement the above steps.
    • For Full Screen : ALT + Enter.
    • Do not use CTRL + F9(Keyboard Shortcut) to run and execute programs.
    Now to start Turbo C everytime, you need to follow the above steps, so to save your time :
    • Go to Program Files.
    • Get into DosBox folder.
    • Find "DOSBox 0.74 Options" and edit it using notepad(move to the end of file).
    • And paste the code as shown in image below.

        By the end of this step, Turbo C will load automatically as you click on DosBox icon.
        Feel free to ask your doubts and enjoy Turbo C(full screen) in windows 7.

        96 comments:

        1. Thank u very much Sir.. Really itz working :) :)

          ReplyDelete
        2. when i run one sample program it display in the message section "LINKING CC.EXE". I want to know how to run

          ReplyDelete
        3. I would recommend you to read this to solve the linker error Linker Error

          hope that helps..

          ReplyDelete
        4. In dosbox folder i could not find "DOSBox 0.74 Options" which i have to edit. Plz help....

          ReplyDelete
        5. Please check it carefully dear, it is in the DOSBox-0.74 folder, titled as DOSBox 0.74 Options(Windows Batch File), just double click to edit it... :)

          ReplyDelete
        6. sir when i type cd tc it shows "unable to change to:tc please help

          ReplyDelete
        7. Hi deepshikha, just double click the DOSBox 0.74 Options(Windows Batch File) to edit it. It will open in notepad automatically.

          ReplyDelete
        8. When i write a program and compile it,it says "Unable to open include file 'conio.h' and 'stdio.h'" and also"Unable to create output file 'C:\NONAME00.obj' "....PLZZ HELP!!

          ReplyDelete
        9. m gettin error... "unable to change to turboC"

          ReplyDelete
        10. Great !! Very useful thought :)

          ReplyDelete
        11. sir i cant open DosBox 0.74option

          ReplyDelete
        12. Hi, DOSBox 0.74 option is a Windows Batch File, you just need to double click it to open it. It will open in the notepad for the editing to be done..

          ReplyDelete
        13. Sir after compiling program it shows
          *unable to open include file 'STDIO.H'
          *unable to create output file 'c:\TC.obj'

          ReplyDelete
        14. sir your idea conio.h and stdio.h to follow the steps
          i did so but its not working
          the second one is helpfull
          i did same as u say

          ReplyDelete
        15. Hi, For that, In Turbo C, click on Options >> Directories.

          Now, if you have installed the program in the directory c:\Tc,

          Enter in the include box > D:
          Enter in the library box > D:
          as virtual D: refers to original c:\Turbo\

          ReplyDelete
        16. In my DOSBox folder there is no such file called DOSBox-0.74 and tel me how to move the code to end of file.Tell me further steps...!

          ReplyDelete
        17. Thanks for your feedback friend, actually you`ve downloaded the previous versions of DOSBox, this tutorial only works for DOSBox version 0.74, so please download that only, and I`ve updated the download link too, so now you can go ahead with this tutorial.Sorry for the inconvenience. Please download it again using the same link and follow the tutorial.

          ReplyDelete
        18. Greate work.....Thanks For Sharing .....

          ReplyDelete
        19. all my programs show the error unable to open include file STDIO.H

          ReplyDelete
        20. Hi,

          I found the solution to header files not being linked, which leads to standard I/O functions and getch() etc not being recognised.

          Do this:
          1. Click DosBox and Mount your TC folder by entering:
          mount d c:\TC (make sure that TC folder is in C drive)
          2. d:
          3. cd bin
          4. tc.exe
          Now TC compiler opens.
          click on Options->Directories do the following
          Include Directories d:\INCLUDE
          Library Directories d:\BIN
          Output Directory d:
          Source Directory d:

          Now your program will compile successfully.

          ReplyDelete
        21. That's correct, thnx for mentioning it again(it's already mentioned in the previous comments), this is because virtual D: refers to original C:/Turbo.

          ReplyDelete
        22. sir thnk u so much!!!! it works !!!!!! it took me 3 weeks to find site that will help me install my turbo c in a 64bit os .... and here it goes it runs!!!! thank YOUUUUUUUUUUUUUUUU!!!!! from Philippines!!!!

          ReplyDelete
        23. it did not work. the screen as small as it was before

          ReplyDelete
        24. Press Alt+Enter to view it in full screen mode.

          ReplyDelete
        25. i am getting error:
          unable to open output directory D\
          plz rply soon

          ReplyDelete
        26. In Turbo C editor,
          Go to Options>Directories> change all the directories to D: or the virtual directory you've set while installating Turbo C using DosBox.

          ReplyDelete
        27. can it is work on windows 7 32 bit

          ReplyDelete
        28. sir i have tried the steps to make the "stdio.h" but still i get the same response "Unable to open include file 'STDIO.H' "

          please help.

          ReplyDelete
        29. Dear amit

          I was also facing all the problems which this anonymous guy was facing n it all got resolved except for the OUTPUT.
          I am compiling the program..its getting compiled.
          But when I run for output...the window disappears..
          how to get the output window or output...pls tell me..

          ReplyDelete
        30. I did the steps above but when i open the dosbox it just shows

          D:\>TC.exe
          Illegal command: TC.exe

          ReplyDelete
        31. sir tell me watever we do coding in the begining like
          mount d: c:\turbo \
          and so on
          can we save dis so each time we haven't type again and again

          ReplyDelete
        32. For Windows 7 32 bit, visit this link after installing Turbo C.

          ReplyDelete
        33. Please don`t use keyboard shortcut to compile c programs, use RUN command in the Turbo C editor..then you`ll not face such problem :)

          ReplyDelete
        34. If it shows "Illegal command: TC.exe", then I think the Turbo C is not properly installed. Try re-installing it, then let me know about any problems :)

          ReplyDelete
        35. Yes it`s there in the post, you can save your time by not writing all those steps everytime you run Turbo C, follow the steps after the video in the article posted above. :)

          ReplyDelete
        36. sir..every thing works out but after compilation i could not run and i could not see any output

          ReplyDelete
        37. THNKS A LOT, AMIT SIR, MY TURBO C IS WORKING BUT IN ORDER TO AVOID INITIAL STEPS TO OPEN TURBO C, I HAVE FOLLOWED YOUR DIRECTIONS AND TYPED THE SAME CODE IN THE NOTEPAD IN 0.74 OPTIONS BUT TURBO C DOESN'T OPENS DIRECTLY WHEN I CLICK ON DOS BOX...PLS HLP ME....

          ReplyDelete
        38. sir after running "mount d C:/turbo/".....error occurs "directory c:/turbo/ does not exist....plz help

          ReplyDelete
        39. tx for guiding -> installation of on TC 64 bit

          ReplyDelete
        40. Please be more specific about your problem..

          ReplyDelete
        41. Hi naveen, write the exact code which you have used while installing Turbo C via DOSBox 0.74 in the notepad editing. Or please try re-installing Turbo C using the same process. :)

          ReplyDelete
        42. Answer to "sir after running "mount d C:/turbo/".....error occurs "directory c:/turbo/ does not exist....plz help" - Give the appropriate directory name where Turbo C is stored to avoid this error.

          ReplyDelete
        43. how to write program in full screen mode...it only allow me to view not edit the content..plz reply..

          ReplyDelete
        44. Hi Kanishka, To get into Full Screen mode, press Alt+Enter, but never faced any situation where I cannot edit the content. I would recommend you to re-install Turbo C using DOSBox. If again there`s any problem, then do let me know.

          ReplyDelete
        45. hi amit sir thnks 4 reply.....i hav typed same code
          "[autoexec]........tc.exe" bt its not wrkng....

          ReplyDelete
        46. Naveen you don`t have to type the "[autoexec] and all", you have to start from here
          mount d c:\TC\
          d
          TC.exe
          make sure the TC in the first line and the last line are same which you have used while installation process.

          ReplyDelete
        47. thanx a lott...awesome work!! :)

          ReplyDelete
        48. Thank you very much Sir..
          It works perfectly!!!!
          Thank you once again!!!!!!!!!

          ReplyDelete
        49. Hey
          The TC runs but m not able to run any program.Though it compiles successfully but does not get to the output after run..tried the compile and run on the screen as well as the keyboard shortcuts..!

          ReplyDelete
        50. Hi, What error are you getting while compiling the programs? Please do not use keyboard shortcut to run the programs.

          ReplyDelete
        51. ya i did not use d keyboard shortcuts at first..But evn wid the compile & run on the screen it does not run..There are no errors while compiling and wen i click on run,thr is just a flash n d editor screen returns..!

          ReplyDelete
        52. Ok, Do check your Directories Settings, which can accessed by Moving to Options>>Directories in Turbo C editor. Make sure that they are set to D:\ or the virtual drive you have used while installation process. Or try re-installing the same.

          ReplyDelete
        53. Could not find a fix for that.. Installed it several times and many ways.. checked the directories too..! I think dts d 1st of its case.. if u find any solution post it.. i ll keep following d blog..!!
          thnx 4 ur help!

          ReplyDelete
        54. Ya sure, will try to resolve this error ASAP.

          ReplyDelete
        55. hi sir.
          thanks a lot.after reading your blog its a great help.i was sucessful in intalling dosbox. when i compile a program there are no errors in compilation but when i run, an error has occured "UNABLE TO OPEN COS.OBJ" file.pls help me.
          and i am not getting how to open c next time shortcut though i have edited notepad by writing mount lines.wat to do?? U tld naveen to write same code in notepad again which we wrote while installing c.do i have to write that at the end of that notepad after writing those mount lines??next time when i have to open c where should i go??
          reply soon.

          ReplyDelete
        56. hello sir, at the time of mounting TC in dosbox am getting that turbo doesn't exist. wt should i suppose to do?
          plzzz help sir.......

          haritha

          ReplyDelete
        57. For error "UNABLE TO OPEN COS.OBJ", open Turbo C editor, Go To Options>Directories>Change Directories>> Set Directories to D:\
          For another error,
          Yes you have to write those mount lines in the notepad file at the end. After writing those mount lines, click on the DOSBox icon to open Turbo C Editor directly.

          ReplyDelete
        58. Haritha, there can be many reasons for that, you might be providing different name(for example, actual file name is TC and you might be providing some other different name say Turbo C), so to avoid that provide the exact name of the file.
          Secondly, May be the Turbo C doesn`t exist on your system. So first download if this is the situation. Then try the above process of installation.

          ReplyDelete
        59. sir , i m getting uanable to change in bin when i type cd bin
          plz tel me wat shld i do knw

          ReplyDelete
        60. thanks a lot i got a help from dos box and now i am able to run turbo with thw help of it

          ReplyDelete
        61. i could not download tc from this link its forbidden

          ReplyDelete
        62. It`s working..I just checked it..please try again..or let me know..will provide you another link to download TC..

          ReplyDelete
        63. If you are facing downloading problem with the above link, please download it from here Turbo C

          ReplyDelete
        64. it shows while compiling that
          unable to open the include file
          unable to open the include file
          i have changed directory mode which u have specified

          ReplyDelete
        65. Check whether the application TC.exe is in the folder TC>>BIN, or change your directories settings to only D:\ instead of D:\TC\INCLUDE or D:\TC\LIB.
          Hope it helps.

          ReplyDelete
        66. Hello sir, thnx 4 the steps but um facing a problem that after pressing alt+enter, tc editor gets displayed in center of screen but of the same small size. plz help me asap!

          ReplyDelete
        67. AAKANKSHA, for that
          1.Go To Folder DOSBox-0.74
          2.Find "DOSBox 0.74 Options(Windows Batch File)" and edit it using notepad.
          2.Find the value "fullscreen=false" and replace false with true.
          3.And Save it.

          ReplyDelete
        68. while runing the pgm i get error "unable to open cos.obj"
          i have written the text u have been given in the DOSBOX0.74 option folder even it shows the error

          ReplyDelete
        69. Check whether the application TC.exe is in the folder TC>>BIN, or change your directories settings to only D:\ instead of D:\TC\INCLUDE or D:\TC\LIB.

          ReplyDelete
        70. Thank u friend its working

          ReplyDelete
        71. thank yu vry mch!! it works wen its minimized bt nt after maximizing!!

          ReplyDelete
        72. You are so hot. Thanks a million. I wish I could give you a gift or something.

          ReplyDelete
        73. WHEN I AM EXTRACTING TC IT DOESN'T SHOWING ANY TC.EXE FILE.............HELP ME SIR PLZ

          ReplyDelete
        74. Hi, TC.exe is situated in BIN. Please follow the steps ahead to complete the installation.

          ReplyDelete
        75. thank you sir. im unable to view full screen. when i press alt+ enter, i got full screen with normal window in the center. And the screen get struck, so unable to edit. please help.. thanks in advance. madhu visakhapatnam.

          ReplyDelete
        76. Hi Madhu, Working on your problems, till then use it in the normal mode only.

          ReplyDelete
        77. hey bro, i'm not able to execute the programme at all....:(

          ReplyDelete
        78. thank u so very much sir.. i was searching for this nly since a very long time..:)

          ReplyDelete
        79. SIR YOU WRITE DO NOT EXCUTE BU CLICK OR TYPE THE KEYWORD CTRL+F9 THEN WHAT KEYWORD ARE USED TO EXECUTE.

          ReplyDelete
        80. when i execute the command tc.exe/tc its not working...so plz tell me whts the promblem behind it??

          ReplyDelete
        81. plzz tell me all steps one by one

          ReplyDelete
        82. Hi Mr amit. i am also facing the issue of not seeing the output. program compiles without errors, but when i go to window>output , it doesn't show the output of program .. the dosbox command prompt is shown there.. even if i include clrscr. those commands are always displayed.

          ReplyDelete
        83. hii sir, can we eun Mplab ide 64 bit in the same way..as am using widows 7 64 bit..
          Nisin

          ReplyDelete
        84. it is unable to change directory from d to tc

          ReplyDelete
        85. If you are getting the error unable to open include file stdio.h or "unable to open file cos.obj" the one of the solutions i found is that both dosbox and tc should be in the same dir

          ReplyDelete
        86. Thanx sir for this .. i found a best solution for a long time. thanks again Amit sir..

          ReplyDelete
        87. HI
          i am not able get the otput pls help.......

          ReplyDelete
        88. hi,thnks a lot my problem is solved......:)

          ReplyDelete
        89. What error are you getting, please be specific..

          ReplyDelete
        90. thnk u very much sir...im very gr8 ful 2 u

          ReplyDelete