Author Topic: Really simple question but... how to build and run a project?  (Read 3531 times)

Offline mothergoose729

  • Single posting newcomer
  • *
  • Posts: 2
I have been using bloodsheds dev C++ on windows but I want to make the switch to linux. I have codeblocks on a few plugins installed and I am looking at the window. I have a project I have been working on loaded and all I want to do is compile it on my system, and run it. Its a pretty simple little program using iostream and a few others. I click the "build and run" button, it tells me the project has not been built and asks me if I want to build it, I say yes. Build log says:


Compiling: /home/.../C++ projects/course project.cpp
/bin/sh: g++: not found
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
And nothing happens. 

I searched the website and this forum for a simple tutorial, and maybe I am just really bad at it, but I found nothing. A little getting started would be great :).

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Really simple question but... how to build and run a project?
« Reply #1 on: May 17, 2010, 05:53:28 pm »
Read tgeh message carefully and you know the problem:
Quote
/bin/sh: g++: not found

You have to install g++, the c++-compiler from gnu compiler collection.
How the appropriate package is called differs from distribution to distribution.

Offline mothergoose729

  • Single posting newcomer
  • *
  • Posts: 2
Re: Really simple question but... how to build and run a project?
« Reply #2 on: May 17, 2010, 06:17:29 pm »
Read tgeh message carefully and you know the problem:
Quote
/bin/sh: g++: not found

You have to install g++, the c++-compiler from gnu compiler collection.
How the appropriate package is called differs from distribution to distribution.

Thank you, I was able to find the appropriate package. When i tried to build the project though it compiled and saved then denied it permission to run the file.  I am using Kubuntu 10.04LTS.