# Getting error when following learnopengl.com “Hello Window” Tutorial; how can I fix them?

I am not sure what to do, I have added the include / lib files in the IDE include / lib folders. But I am getting these errors. Someone please help me! What am I doing wrong? Do I need to add some more code or what?

Errors

Error C1189   #error:  OpenGL header already included, remove this include, glad already
provides it OpenGLSetup
c:\program files (x86)\microsoft visual studio 14.0\vc\include\glad.h 26

c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\glad.h 26


======

Here is a link to the project on gitub: https://github.com/Kraycon/OpenGLSetup

• 1. Code and errors should be shared as text, not as images. This both makes them easier to read, and also searchable so that folks with similar problems / experts with relevant skills can find your question. 2. Did you try removing the redundant include directive as the error message instructed you to, and verifying that the source files it's complaining about are in the indicated folders? – DMGregory Sep 15 '17 at 17:12
• Hi, I got rid of two errors but I am not sure what is means by remove the include. Where is teh OpenGL include? – connormackayscot Sep 15 '17 at 17:55
• @KrayconStudios "remove" - abolish or get rid of, "include" - (here) A preprocessor in the c++ language that tells the compiler to insert the specified file to the position of the preprocessor statement – Bálint Sep 15 '17 at 17:58
• Please include the faulty code into the question: you'll keep on working on your project, fixing your issues. Your linked project will be completely irrelevant to future readers of this site, making this question completely useless for future readers. – Vaillancourt Sep 15 '17 at 20:52

TL;DR: #define GLFW_INCLUDE_NONE before including GLFW, or include glad bfore including glfw.

When you get these errors, the first thing to do is search for where the message is being generated: