User forums > Using Code::Blocks

Really simple question but... how to build and run a project?

(1/1)

mothergoose729:
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 :).

Jenna:
Read tgeh message carefully and you know the problem:

--- Quote ---/bin/sh: g++: not found
--- End quote ---

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

mothergoose729:

--- Quote from: jens on May 17, 2010, 05:53:28 pm ---Read tgeh message carefully and you know the problem:

--- Quote ---/bin/sh: g++: not found
--- End quote ---

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

--- End quote ---

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.

Navigation

[0] Message Index

Go to full version