Code::Blocks does't compile

Hello

I use Linux and Code::Blocks, but when I try to compile, nothing happens!
This is what I get:
1
2
3
4
5
6

g++ -Wall -fexceptions -O2 -Wzero-as-null-pointer-constant -w -Wfatal-errors -Wextra -ansi -pg -g  -c /home/niely/Projects/test/Test/main.cpp -o obj/Release/main.o
/bin/sh: 1: g++: not found
Process terminated with status 127 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 


Is use GNU GCC compiler. :)

Thanks for reading,
Niely
Well the error message is about as clear is possible: You don't have g++ installed. Install g++ via whatever package management tool your distro uses (apt or yum most likely). Though I'm kind of surprised the C::B install didn't bring it in automatically.
Didn't work.
I already tried: sudo apt-get install g++
(I have Linux Mint by the way). :)
How did you install C::B?

Try running which g++ and see if that returns it.
/usr/bin/g++
closed account (EwCjE3v7)
U need to do this
1
2
sudo apt-get install g++ build-essentials

That should do it.
Otherwise go to package manager and re install codeblocks and g++ from there.
Last edited on
Hmm then g++ is installed is installed in the correct place. I'm not really sure why C::B isn't seeing it.

How did you installed C::B?
Topic archived. No new replies allowed.