Author Topic: gcc on Ubuntu 11.04  (Read 8874 times)

Offline GiuliaReis

  • Single posting newcomer
  • *
  • Posts: 5
gcc on Ubuntu 11.04
« 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.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: gcc on Ubuntu 11.04
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline GiuliaReis

  • Single posting newcomer
  • *
  • Posts: 5
Re: gcc on Ubuntu 11.04
« Reply #2 on: January 24, 2011, 08:25:26 pm »
I installed the g++, do I need more? (debugger)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: gcc on Ubuntu 11.04
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: gcc on Ubuntu 11.04
« Reply #4 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 .

Offline kencamargo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: gcc on Ubuntu 11.04
« Reply #5 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.

Offline GiuliaReis

  • Single posting newcomer
  • *
  • Posts: 5
Re: gcc on Ubuntu 11.04
« Reply #6 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