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.
I normally use Code::Blocks while using my Windows partition, and I recommend it for it’s rather beginner-friendly approach.
- 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++.rarand you’ll get the following files.
Extract the Folder
Borlandinto the system drive (which is probably
Launch Code::Blocks and go to Settings on the top toolbar.
Compilersfrom the drop down menu that appears.
- In compilers, select
Borlandand 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”