Why am I getting these errors?
error: \'GL_VERTEX_SHADER\' was not declared in this scope
error: \'glCreateShader\' was not declared in thi
libepoxy is like an extended gl.h
;
#include
#include
, and -lGL
with -lepoxy
. If you are on Windows/Mac you will have to build the source, so it might not be worth it if you already have a loader that you prefer, but I have found it works pretty well as a drop in replacement for GL/gl.h
for GL3.3+, that got rid of the errors.