Author Topic: beginner, having problem "build", g++: not found  (Read 5870 times)

vincentdm

  • Guest
beginner, having problem "build", g++: not found
« 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
« Last Edit: September 24, 2009, 06:37:17 am by vincentdm »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: beginner, having problem "build", g++: not found
« Reply #1 on: September 24, 2009, 10:48:55 am »
It looks like, you don't have g++/gcc installed?
(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

  • Guest
Re: beginner, having problem "build", g++: not found
« Reply #2 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.

maurizio

  • Guest
Re: beginner, having problem "build", g++: not found
« Reply #3 on: October 07, 2009, 06:00:56 pm »
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.