To run NORMAL C++ Code (OOP) :
- g++ filename.cpp
- ./a.out
To run normal GRAPHICS Code :
- g++ filename.cpp -lgraph
- ./a.out
To run OPENGL Code :
- g++ filename.cpp -lGL -lGLU -lglut
- ./a.out
NOTE : if g++ is NOT working, try replacing with gcc. NOTE : -o flag followed by outputfilename.out can be used after compiling command for diffrent output file, but will change the output file name required while running also.