PDA

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



twigboy
February 2nd, 2006, 03:53 AM
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 2nd, 2006, 03:57 AM
sudo apt-get install build-essential

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

twigboy
February 2nd, 2006, 04:09 AM
Sweet thanks a lot. It worked like a champ.