Simple steps to setup and execute OpenGL code on Ubuntu-based operating systems (Ubuntu, Linux Mint, Zorin OS, Pop_OS!, etc.)
sudo apt-get install freeglut3-dev
gcc filename.c -lGL -lGLU -lglut -lm -o outputfilename
./outputfilename
Simple steps to setup and execute OpenGL code on Ubuntu-based operating systems (Ubuntu, Linux Mint, Zorin OS, Pop_OS!, etc.)
sudo apt-get install freeglut3-dev
gcc filename.c -lGL -lGLU -lglut -lm -o outputfilename
./outputfilename