Code::Blocks Forums

User forums => Help => Topic started by: vincentdm on September 24, 2009, 06:33:18 am

Title: beginner, having problem "build", g++: not found
Post by: vincentdm on September 24, 2009, 06:33:18 am
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
Title: Re: beginner, having problem "build", g++: not found
Post by: oBFusCATed on September 24, 2009, 10:48:55 am
It looks like, you don't have g++/gcc installed?
Title: Re: beginner, having problem "build", g++: not found
Post by: maurizio on October 07, 2009, 05:57:18 pm
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.
Title: Re: beginner, having problem "build", g++: not found
Post by: maurizio on October 07, 2009, 06:00:56 pm
Solution found here: http://www.tesseract.it/index.php/notizie/1/88-codeblocks-installazione-sotto-ubuntu (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.