PDA

View Full Version : g++: command not found...?


twigboy
February 1st, 2006, 10:53 PM
Hi everyone
I have been trying to compile some c++ code but am having an issue trying to get it to compile. I have installed the GNU C++ compiler g++-4.0 from synaptic, is something else needed?
I am compiling with g++ -W -Wall - Werror <filename>.cc -o <filename>
Thanks

jrib
February 1st, 2006, 10:57 PM
sudo apt-get install build-essential

The build-essential package will give you all the stuff you need to build stuff

twigboy
February 1st, 2006, 11:09 PM
Sweet thanks a lot. It worked like a champ.