'glCreateShader' was not declared in this scope?

后端 未结 3 2060
隐瞒了意图╮
隐瞒了意图╮ 2021-01-18 07:30

Why am I getting these errors?

error: \'GL_VERTEX_SHADER\' was not declared in this scope
error: \'glCreateShader\' was not declared in thi

3条回答
  •  悲哀的现实
    2021-01-18 08:08

    You need to either use an OpenGL loading library to load OpenGL functions, or manually load the functions yourself. You can't just use gl.h and expect to get everything.

提交回复
热议问题