I think I should have a folder for OpenGL headers under "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include", but there isn't one there.

How would I go about adding it? From the Visual Studio installer CD, I've tried "Add or Remove Features", which doesn't give me many options. Just Webtools, VB, C# and C++, and having C++ and C# checked when running it didn't help. I've also tried "Repair/Reinstall", which didn't have any options and didn't help.

So how do I install the OpenGL libraries? I'm pretty sure there should be a "gl" folder under include, and I'd thought it would come from the Visual Studio installer. If at all possible, I'd like to avoid having to entirely uninstall and reinstall Visual Studio.


In Visual Studio add the directory to: Tools->Options->Projects and Solutions->VC++ Directories.

  • If the problem were that I could find it on my file system, but Visual Studio wouldn't find it, this would be the correct answer. However, the real problem is that I didn't know what directory to add.
    – cgmb
    Jun 13 '11 at 16:23
  • Deprecated in VS2013.
    – vallentin
    Mar 31 '16 at 21:40

I found the OpenGL files. They were installed as a part of the Microsoft Windows SDK, and for Windows 7 64bit can be found under:

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.