100% found this document useful (1 vote)
55 views2 pages

Setting Up Your C++ Compiler

This document provides instructions for setting up a C++ compiler for Windows and Linux users. For Windows, it recommends downloading CodeBlocks IDE and describes how to create, compile, and run a basic C++ file. For Linux, it recommends downloading Geany IDE and provides similar instructions. It also offers troubleshooting tips, including uninstalling and reinstalling CodeBlocks, using online compilers, or as a last resort, a mobile app for C++ compilation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
55 views2 pages

Setting Up Your C++ Compiler

This document provides instructions for setting up a C++ compiler for Windows and Linux users. For Windows, it recommends downloading CodeBlocks IDE and describes how to create, compile, and run a basic C++ file. For Linux, it recommends downloading Geany IDE and provides similar instructions. It also offers troubleshooting tips, including uninstalling and reinstalling CodeBlocks, using online compilers, or as a last resort, a mobile app for C++ compilation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Setting up your C++

Compiler
For Windows users
To practice writing programs in windows, we would suggest you to download
CodeBlocks IDE​.

To learn how to download codeblocks, watch this video ( Upto 4:30 minute
):
https://www.youtube.com/watch?v=aS5_jrIbKmA

To learn to create, compile and run C++ files :


1. Open Codeblocks
2. File ⇒ New ⇒ Empty File.
3. Enter your code.
4. Save the file as "Hello.cpp" (or any other name) in your some directory.
5. Select "Build" menu ⇒ Build (or press Ctrl-F9).
6. Run: Select "Build" menu ⇒ Run (or press Ctrl-F10).

For Ubuntu (Linux) users


To practice writing programs in Linux, we would suggest you to download ​Geany
IDE​.
To learn how to download and setup geany, watch this video:
https://www.youtube.com/watch?v=ePZEkbbf3fc

To learn to create, compile and run C++ files -


1. Open Geany
2. File ⇒ New ⇒ Empty File.
3. Enter your code.
4. Save the file as "Hello.cpp" (or any other name) in your some directory.
5. Select "Build" menu ⇒ Build (or press Ctrl-F9).
6. Run: Select "Build" menu ⇒ Execute (or press Ctrl-F5).
For those facing any problems in setting up
compiler :

1. In case, you had already installed codeblocks and are not able to run any
program in it, try uninstalling it and re-installing it, as per the instructions given
above.

2. If still you face some problem, you can also use any online C++ compilers like
:
(i) ​https://csacademy.com/workspace/
(ii) ​https://ideone.com/

3. If you don't have access to laptop or PC and are not comfortable with the
above online compilers, only and only in that case, you should go for this mobile
app (CppDroid) for C++ compiler :
https://play.google.com/store/apps/details?id=name.antonsmirnov.android.cppdr
oid

You might also like