[opengl] How do you install GLUT and OpenGL in Visual Studio 2012?

For Microsoft Visual Studio 2017 Community GLUT installation -

  1. Download the header, dll's and lib files fro glutdlls37beta (linked in here)

  2. Paste glut.h in C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\{14.11.25503}\include\GL Create the GL folder if not present already. The {thing} may differ.

  3. Paste glut.lib in C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\{14.11.25503}\lib\x64. Paste glut32.lib in C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\{14.11.25503}\lib\x86. The {thing} may differ.

  4. Paste glut32.dll in C:\Windows\System32. Paste glut.dll and glut32.dll in C:\Windows\SysWOW64.

  5. Follow Vishwanath gowda k's answer next. Go to Project -> Properties(All Configuration option)->Linker -> Input -> Additional Dependencies->edit(down arrow on the right end) Type-> opengl32.lib glu32.lib glut32.lib Hit Ok->apply.