The target of this article is to help C++ learners to run Turbo c++ under Ubuntu (Linux) O/s.
Turbo c++ is a quite generally utilized compiler for C and C++ in most Indian schools and universities/colleges (SPECIALLY DELHI UNIVERSITY). Despite the fact that there are numerous different compilers like Eclipse Cpp (not to be confounded for Eclipse IDE for Java), CINT and so on accessible on the house and offer better functional and intriguing IDE characteristics, numerous schools and universities are even now utilizing Turbo c++ which is an old fashioned compiler. As scholars are never presented to such new engineering upgrades, they are not sure about utilizing most recent C++ compilers.
The excuse for why Turbo C++ can’t run under Ubuntu is in light of the fact that turbo C++ is constructed for Dos. Yet there is a method for doing it. The answer for this issue is utilizing Dosbox, which is a Dos emulator for Linux O/s. Dosbox has a repution of being extremely light and stable emulator for Dos based projects and was created with the intension of utilizing it to imitate Dos amusements and systems on linux frameworks.
You may be asking why I picked Dosbox in place of Wine, well thats since wine can’t handle dos programs like Turbo C++, and I would say wine is overwhelming on the framework as it is essentially implied for Windows based projects.
Steps for installation….
Run this command in terminal(Ctrl+Alt+T):
sudo apt-get install dosbox
When your done installing Dosbox you will now require the turbo C++ installation setup which could be downloaded from here(download).(LINK UPDATED)
Now open up Dosbox and Type in the below code (in separate lines):
mount c ~
This will start the setup of Turbo C++.
Select “Start Installation” in the below window.
Step 2) Creating the configuration file
config -writeconf /home/your-username/dosbox.conf
Step 3) Creating auto-mount and emulating in fullscreen.
mount c ~ /home/your-username/
Now to set the default screen size to full-screen, find the word fullscreen in the same file (dosbox.conf) and change its value to true:
Step 4) Deleting Ctrl+F9 key to avoid shutdown of Dosbox
And in the end you will have to delete a key from the Dosbox keymapper : Ctrl+F9
Since Ctrl+F9 is a Shutdown key in Dosbox you may feel very irritated with it, as the same key is used to compile a program in Turbo C++.
To work-around this issue, open dosbox and hold Ctrl+F1. Now in the window, select theshutdown option on the right hand side bottom, click on delete and then save and exit. This should remove the keymap to Shutdown DOSBOX.
Step 5) Creating Launcher
To make things more convenient, we will create a launcher so that you can run your compiler just by double clicking on it. Here’s how you can do it:
Right click on the desktop and select create launcher.
Name: Turbo c++
command: dosbox -c TC.EXE -c EXIT
Also Read: How to Download and Install Turbo C/C++ on Windows 10 32/64 bit
Note: Since we have set Dosbox to open in fullscreen you may consider the Alt+Enter key to use it under seamless mode .
If you have any trouble on the installation procedures contact me on www.facebook.com/turbocforwindows8