Win8 / VS2012: Unable to open include file 'GL / glew.h': no ​​such file or directory

I am trying to upgrade from Windows 7 to 8, but glew and freeglut bring me problems.

I mainly used the following instructions:

1) Copy the contents of the Lib and Include \ GL libraries in the Program Files \ Microsoft SDK \ Windows \ [latest version] Lib and Include \ GL folders

2) Copy the freeglut.dll file and the contents of the glew bin folder to the Windows \ SysWOW64 \ folder

This worked fine using Windows 7 / VS2010 (where the folder in the Microsoft SDK was v7.0A), but on Windows 8 / VS2012 I get the following error when creating my solution:

error C1083: Cannot open include file: 'GL/glew.h': No such file or directory 

For the SDKs folder on Windows 8, the latest version is v8.0A, however I also tried using v7.0A, getting the same result. However, I noticed that in Windows 7 there were Lib and Include folders in the SDK folder, but this was not in the Windows 8 folder. Not sure if that matters.

Any suggestions?

EDIT: The instructions I use for installation are a small modification found here , with the modification copying the DLL to the Windows system folder, and not to every output from the project (which also does not help).

The applications I'm developing are for a college course, so using other libraries is probably out of the question.

Library versions: 2.8.0 (freeglut) and 1.9.0 32-bit (glew).

+6
source share
1 answer

As far as I understand, GLEW and GLUT have been excluded from the latest SDKs. They were terribly outdated. You can grab the latest headers and libraries from here and here, then integrate them with your project in the usual way.

+3
source

Source: https://habr.com/ru/post/925826/


All Articles