Code::Blocks Forums

User forums => Help => Topic started by: GiuliaReis on January 24, 2011, 08:06:27 pm

Title: gcc on Ubuntu 11.04
Post by: GiuliaReis on January 24, 2011, 08:06:27 pm
When i build the application the gcc compiler is not found:

-------------- Build: Debug in FirstTry ---------------

Compiling: main.cpp
/bin/sh: g++: not found
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
however in the terninal window:
gcc -v gives gcc version 4.4.5.

Title: Re: gcc on Ubuntu 11.04
Post by: stahta01 on January 24, 2011, 08:10:42 pm
Code
g++ -v
gives what?

Did you install the C++ and C Compilers? Or, only C Compiler?

Tim S.
Title: Re: gcc on Ubuntu 11.04
Post by: GiuliaReis on January 24, 2011, 08:25:26 pm
I installed the g++, do I need more? (debugger)
Title: Re: gcc on Ubuntu 11.04
Post by: MortenMacFly on January 24, 2011, 09:48:25 pm
I installed the g++, do I need more? (debugger)
Depends on your distro. Sometimes the debugger is bundled, sometimes not. Just search for "gdb" through the packages and decide upon the result. If you plan to develop with special libraries in mind, install these as well.
Title: Re: gcc on Ubuntu 11.04
Post by: Jenna on January 24, 2011, 09:48:48 pm
I installed the g++, do I need more? (debugger)
Do you instal gcc or also g++.
g++ has an own package and is not automatically installed with gcc .
Title: Re: gcc on Ubuntu 11.04
Post by: kencamargo on January 24, 2011, 11:31:28 pm
I installed the g++, do I need more? (debugger)
Do you instal gcc or also g++.
g++ has an own package and is not automatically installed with gcc .

I believe the build-essentials package installs all the necessary stuff.
Title: Re: gcc on Ubuntu 11.04
Post by: GiuliaReis on February 04, 2011, 11:22:36 am
I installed the g++, do I need more? (debugger)
Do you instal gcc or also g++.
g++ has an own package and is not automatically installed with gcc .
Yes, that did the trick. thanks Rob