Compiling source code and creating build is not easy in Linux box. If you are developer and new to Debian or Ubuntu machine, following command may interest you.
sudo aptitude install build-essential
What does it do? It actually install all c/c++ compiler which are necessary to compile source. You can give try.
Suppose you have create helloword.c file. Just do this
cc -c helloworld.c cc -o helloword helloworld.c ./helloworld
Instead, if you have helloworld.cpp (C++ code)
g++ helloworld.cpp -o helloworld ./helloworld
Happy programming!!