How To Install Turbo C++ In Linux
The target of this commodity is to aid 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 at that place are numerous different compilers like Eclipse Cpp (not to be confounded for Eclipse IDE for Java), CINT and so on accessible on the firm and offer better functional and intriguing IDE characteristics, numerous schools and universities are even now utilizing Turbo c++ which is an old fashioned compiler. Every bit scholars are never presented to such new engineering science upgrades, they are non sure about utilizing most recent C++ compilers.
Also Read: How to Download and Install Turbo C/C++ on Windows 10 32/64 bit
The excuse for why Turbo C++ tin can't run nether Ubuntu is in light of the fact that turbo C++ is synthetic 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/south. 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.
Yous may be asking why I picked Dosbox in place of Vino, well thats since wine can't handle dos programs like Turbo C++, and I would say vino is overwhelming on the framework every bit information technology is essentially implied for Windows based projects.
Also Read: How to Download and Install Turbo C/C++ on Windows 10 32/64 bit
Steps for installation....
Footstep 1) INSTALLATION
Download DOSBox Emulator from USC [Ubuntu Software Center] .
OR
Run this control in terminal(Ctrl+Alt+T):
lawmaking:
sudo apt-get install dosbox
When your washed installing Dosbox y'all volition now require the turbo C++ installation setup which could be downloaded from here(download).(LINK UPDATED)
Unzip the setup naught folder and place the files inhome/your-user-name directory (* Necessary)
Now open up Dosbox and Type in the beneath code (in separate lines):
Code:
mount c ~ c: cd setup install.exe
This will start the setup of Turbo C++.
Here choose the destination drive as c and source path as setup in the next window.
Select "Offset Installation" in the below window.
Turbo C++ is now installed on Dosbox. Yous may consider checking it by executing the following code on Dosbox (in separate lines):
Lawmaking:
c: cd TC\bin tc.exe
Step ii) Creating the configuration file
Run this command in DOSBOX to generate the configuration file which volition be stored equally: /dwelling house/user-name/dosbox.conf .
Ensure you enter your arrangement user-name in place of "your-username" in the below code:code:
config -writeconf /home/your-username/dosbox.conf
Footstep 3) Creating auto-mount and emulating in fullscreen .
Open dosbox.conf that nosotros created before in whatever text editor, which you will find it under home/your-username, and configure DOSBOX for auto-mount.
Add together the following lines at the end of the configuration file as shown in the higher up highlight.
lawmaking:
mount c ~ /home/your-username/ C: CD TC CD BIN TC
Now to set the default screen size to full-screen, observe the word fullscreen in the aforementioned file (dosbox.conf) and alter its value to true :
Now you are done setting up the configuration file for Dosbox to auto-mountain and emulate in fullscreen. Save the file and close it. Step four) Deleting Ctrl+F9 key to avoid shutdown of Dosbox And in the terminate you will have to delete a cardinal from the Dosbox keymapper : Ctrl+F9
Since Ctrl+F9 is a Shutdown cardinal in Dosbox you may experience very irritated with it, as the aforementioned key is used to compile a program in Turbo C++.
To piece of work-around this result, open dosbox and hold Ctrl+F1 . At present in the window, select the shutdown option on the correct hand side bottom, click on delete so save and leave . This should remove the keymap to Shutdown DOSBOX.
Step v) Creating Launcher
To make things more than convenient, we will create a launcher so that you can run your compiler just by double clicking on it. Here'south how you can exercise information technology:
Right click on the desktop and select create launcher.
command : dosbox -c TC.EXE -c EXIT
Source: https://www.turboc8.com/2013/11/turbo-c-for-ubuntulinux-using-dosbox.html
0 Response to "How To Install Turbo C++ In Linux"
Post a Comment