I am able to build and run the code at this tutorial just fine
g++ p1.cpp -lglut -lGL
www.codeproject.com/Articles/182109/Setting-up-an-OpenGL-development-environment-in-Ub

Im using the...