Originally posted by adz
To elaborate on this a bit, most Linux distros come with the GNU C++ compiler, G++. You can use this to compile your C++ code with this command:
g++ filename.cpp -o exe_file
If you type g++ and get no response, you need to install your distro's development packages.