Starfield How to compile: g++ main.cpp texture.cpp -lGL -lGLU -lGLEW -lglfw -o /path/to/bin Note: I do not support Windows operating systems. If the project fails to compile because of glew.c, you have to statically link it.