User forums > Help

beginner, having problem "build", g++: not found

(1/1)

vincentdm:
i just started using code blocks 8.02 on ubuntu 9.04

so when i try to start a new project in C in a console application, i get the main. source code that is already there, the one that is suppose to tell "hello world!" in a console. the probleme is when i try to build my "project".

When i press on the Build and run button, it's telling me : "It seems that this project has not been built yet. Do you want to build it now?" ; wich i know is normal. So i press yes, and the on the build log, i get this message:


-------------- Build: Debug in projetnum1 ---------------

Linking console executable: bin/Debug/projetnum1
/bin/sh: g++: not found
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
Can anybody help me... cause from there i can't really go further.

Thanks

oBFusCATed:
It looks like, you don't have g++/gcc installed?

maurizio:
Same problem here with Ubuntu 9.04 and Code::Blocks 8,02.

GCC is installed and C::B detects it but it seems that the compilation scripts are broken.
Or maybe I am missing something in fact I can run gcc from the terminal but I cannot run g++.
Maybe I have to install some additional package?

M.

maurizio:
Solution found here: http://www.tesseract.it/index.php/notizie/1/88-codeblocks-installazione-sotto-ubuntu.

Basically we have to install g++. From a terminal window type:

sudo apt-get install g++

Hope this helps.

M.

Navigation

[0] Message Index

Go to full version