You aren't including any OpenGL loader in your code. glClear is an OpenGL function. Take a look at Glad.
glClear
1.4m articles
1.4m replys
5 comments
57.0k users