Getting Started with C/C++
in Cpp-tutorial on C++
Installation
Linux
GCC is the deault compiler for C/C++ in most linux distributions that I know of. Therefore, you should be able to check for it by just running the command gcc
in your Linux PC. If you’re using Ubuntu (or any other Debian distro) like me, you will probably have it installed. If not, you might have to run sudo apt-get install build-essential
and you’ll be up and running.
Windows
I normally use Code::Blocks while using my Windows partition, and I recommend it for it’s rather beginner-friendly approach.
Install Procedure
- Download the executable from here
- If you’ve downloaded the installer with the name
codeblocks-16.01mingwsetup.exe
, then there’s no need to install minGW separately. If not, go to the third step. - Install minGW from here (By the way, minGW is the default installer)
- Enjoy Code::Blocks!
Bonus: Installing Borland C++ Compiler
- Use this link to download the mediafire file.
- Extract the file
Borland C++.rar
and you’ll get the following files. -
Extract the Folder
Borland
into the system drive (which is probablyC:\
) -
Launch Code::Blocks and go to Settings on the top toolbar.
- Select
Compilers
from the drop down menu that appears. - In compilers, select
Borland
and select it as default. Now you’re ready to go! What it looks like What it needs to look like before you click on “Set as default”