Author Topic: g++ : not found  (Read 11286 times)

lowre

  • Guest
g++ : not found
« on: June 30, 2008, 02:21:15 pm »
Hi!
I'm just trying to develop under linux for some days. I was writing a lot of programs with C::B + GNU GCC in windows. My linux knowledge is basic level. Frankly speaking, it have taken 2 days to find out where the hell are the standard libary functions, and install libc6-dev... So, my problem is that the C::B cannot build any project. In the build log:
Linking console executable: bin/Debug/first
/bin/sh: g++: not found
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings


It was the simple "hello World" console application. I have gcc installed, the latest.
What do I have to do??? I belived the "g++" is only a nickname for GCC, am i rigth? Do i Have to install any other package to have it, except the C::B packages?

My linux is Ubuntu 8.04 Hardy, C::B 8.02

Thanks for help! 
« Last Edit: June 30, 2008, 02:22:56 pm by lowre »

Offline McZim

  • Multiple posting newcomer
  • *
  • Posts: 36
Re: g++ : not found
« Reply #1 on: June 30, 2008, 04:04:25 pm »
no, you not right!!! :) You need install g++

#sudo aptitude install g++

see this :)

Code
sudo aptitude search g++|grep g++

i   g++                             - компилятор GNU C++
p   g++-3.3                         - The GNU C++ compiler
i A g++-3.4                         - The GNU C++ compiler
i A g++-4.1                         - The GNU C++ compiler
p   g++-4.1-multilib                - The GNU C++ compiler (multilib files)
i A g++-4.2                         - компилятор GNU C++
p   g++-4.2-multilib                - The GNU C++ compiler (multilib files)
p   g++-multilib                    - The GNU C++ compiler (multilib files)
p   pocketpc-g++                    - The GNU C++ compiler for Pocket PC
p   ppu-g++                         - PPU C++ compiler
p   spu-g++                         - SPU cross-compiler (C++ compiler)

lowre

  • Guest
Re: g++ : not found
« Reply #2 on: June 30, 2008, 04:20:00 pm »
Ohh, thanks!  :)