Code::Blocks: g++ not found

Recently I have installed Code::Blocks IDE on my Ubuntu 12.10. The following error appears when I try to run or compile any code written in there:

Compiling: /home/sabbir/first.cpp
/bin/sh: 1: g++: not found
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings

How can I solve this problem?

3 Answers

Most likely you are simply missing a compiler.

Get one by installing build-essential package.

Typing sudo apt-get install build-essential into terminal is one of the easiest ways to achieve that.

i think you have to install g++ c++ compiler using synaptic package manager

1

There is no c++ compiler! You should install gcc c++

apt install gcc-c++

After installing c++ compiler it will work

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like