News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

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

Started by vincentdm, September 24, 2009, 06:33:18 AM

Previous topic - Next topic

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

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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.