Well many users do still use the Turbo C compiler in windows and people shifting to linux may still prefer to use turbo C compiler.It is pretty much possible using dosemu which is a MS dos emulator.Here's how you get it working

Step 1 : Firstly unzip the Turbo C file , you should get a folder called TC with directories like bin,include,lib etc inside it.
Step 2 : Now copy this TC folder to your home directory, say /home/prash .
Step 3 : Now go to the terminal(Applications->Accessories->Terminal) and type sudo apt-get install dosemu to install dos emulator
Step 4 : After that is done, You just have to launch TC.
NOTE:In dosemu D: drive is your home directory, in my case /home/prash
Step 5 : Therefore in the terminal type sudo dosemu to launch dosemu and then type d: and then type cd d:\tc\bin and then type tc
Step 6 : Now turbo C should have loaded, try typing a simple c program and if all is well then cool.. if you see an error like printf function not found or stdio.h not found, then dont worry, you just need to give the correct link of the location of the header files.

Step 7 : For this, go to Option->Directories and enter Include Directories as D:\TC\INCLUDE and Library Directories as D:\TC\LIB and then Click on OK and you should have turbo c running flawlessly..

0 comments

Post a Comment