How to install OpenGL libraries for Visual Studio

openglvisual-studio-2008

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.

Best Answer

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

Related Question