batfiction to run the cpp files Install Linux OpenGl packages sudo apt-get install freeglut3 freeglut3-dev and run the following command on your terminal g++ <filename>.cpp -lGL -LGLU -lglut ./a.out