I am trying to use glad.h with my code. I am programming on Visual Studio 2013. For some reason its giving me the error C1189: #error : OpenGL header already included, remove this include, glad already provides it
Can someone help me with this?
These are the headers that I am including:-
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
I just reversed the include order of glfw3.h
and glad.h
,like this:
#include <glad\glad.h>
#include <GLFW\glfw3.h>
Using GLFW, adding GLFW_INCLUDE_NONE to Properties->C/C++->Preprocessor->Preprocessor Definitions fixed this
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With