g++ code.cpp -o code
Eigenlijk is het het makkelijkste om het pakket build-essential te installeren, dan hebt ge alles wat nodig is.