Code::Blocks Forums

User forums => Help => Topic started by: lowre on June 30, 2008, 02:21:15 pm

Title: g++ : not found
Post by: lowre 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! 
Title: Re: g++ : not found
Post by: McZim 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)
Title: Re: g++ : not found
Post by: lowre on June 30, 2008, 04:20:00 pm
Ohh, thanks!  :)