CodeBlocks Installation - learnclang/1-helloworld GitHub Wiki

Before to install CodeBlocks,we need to install the C and C++ so compiler,so if you don't have open terminal and write: sudo apt-get install gcc sudo apt-get install g++

CodeBlocks Installation

  • From Terminal
    • apt-get install codeblocks
  • From Ubuntu Software Center
    • search "codeblocks"->click "install"

Now open CodeBlocks and check if "gnu gcc compiler" is detected, otherwhise install gcc,later click "ok"

Create new project

file->new->project->console application->go->next->C->next

Set project configuration

project title="HelloWorld"
folder to create project in = /home/user/Dev 
click "next"
click "finish"

[Next: Build and Run "hello world" ->](CodeBlocks Compilation)