Jumat, 23 Oktober 2015

How To Install Compiler in C/C++

How To Install C/C++ Compiler

How to install code::blocks and also the GCC compiler - this tutorial will accompany you how to install code::blocks and the GCC compiler. --almost all of you maybe have a trouble when you want to learn about C/C++ and you have no software to do it. or some of you already have the software but you have no compiler and can't compile and run your program. but don't worry, now i will tell you how to fix your problem. this is the step how to install code::blocks and the compiler:

1.Step 1: Download Code::Blocks

2.Step 2:Install Code::Blocks
  • go to the folder that you save the file.
  • double click the installer and you will see this.
  • wait until it finished.
3.Step 3: Run Code::Blocks
  • after you run the code::blocks, you will see something below :
  • and then there are many options. choose "yes, associate code:blocks with C,C++ file types
  • the compiler will be installed automatically. the compiler is GNU GCC compiler
  • and you can used your code::blocks

  • after that, chose "create new project". and then the following window will be :

  • chose console aplication and click go. click next and you can choose which language do you want yo use:

  • after that you can fill the project title and the project name coloum also where do you want to save your project :

  • after you fill out the file name/title. there will be show a window menu, just click "finish". i suggest you chose your own directory folder. the project will be saved there, and then you can start to make your code by click files, new, empty file (ctr + shift + N).


  • if you already made your code, don't forget saved your file with ".cpp" extension or you can change the value to "all files".
4.The Compiler Didn't Work Properly?
  • if when you want to compile the program and it showed you an error, you set the compiler by click setting, and click compiler and then it will showed :
  • go to "Toolchain Executable" and then click auto detect.
  • or you click "Reset default".
  • now, try to compile your code again. and then run your code.

Tidak ada komentar:

Posting Komentar