Reputation: 715
So I am trying to get my first c++ app to run but i keep getting this error. The error originates from the freeglut_std.h
file.
I have downloaded the freeglut 3.0.0 MinGW Package and placed the files inside their respective directories in my MinGW installation folder but there is no file called gl.h. I have added the libraries to my project properties
I have checked the question that this should be a duplicate of but the solution given there, install Windows SDK, did not fix my problem.
Upvotes: 1
Views: 5118
Reputation: 162164
Normally there's no need to download GL/gl.h
; OpenGL is part of the Windows ABI contract, which means that every compiler toolchain that targets the Windows API must provision for compiling the OpenGL version that's specified for the Windows ABI. That would be OpenGL-1.1
If your MinGW installation lacks the GL/gl.h
header, something is broken in your particular installation. Note that in some Linux distributions you may have to install the development support files separately. But with MinGW the OpenGL headers should be part of the standard installation.
Upvotes: 1