News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

gcc on Ubuntu 11.04

Started by GiuliaReis, January 24, 2011, 08:06:27 PM

Previous topic - Next topic

GiuliaReis

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.


stahta01

g++ -v
gives what?

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

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

GiuliaReis

I installed the g++, do I need more? (debugger)

MortenMacFly

Quote from: GiuliaReis on January 24, 2011, 08:25:26 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Jenna

Quote from: GiuliaReis on January 24, 2011, 08:25:26 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 .

kencamargo

Quote from: jens on January 24, 2011, 09:48:48 PM
Quote from: GiuliaReis on January 24, 2011, 08:25:26 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.

GiuliaReis

Quote from: jens on January 24, 2011, 09:48:48 PM
Quote from: GiuliaReis on January 24, 2011, 08:25:26 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 .
Yes, that did the trick. thanks Rob