Reputation: 204
I am trying very hard to install OpenGL on Visual Studio 2012, but even with GLUT, it doesn't work.
I read this other question, but it didn't work too: How do you install GLUT and OpenGL in Visual Studio 2012?
So basically, I am left with no choice, but to ask on how am I about to link those libraries? Explain each step and bear in mind that I am using x64 Windows 7.
Upvotes: 0
Views: 1095
Reputation: 19
glut32.dll
, glut.dll
and paste them in C:\Windows\SysWOW64
folder.glut.h
file and paste it in C:Program Files (x86)\Microsoft SDKs\Windows\v7.0A
(maybe it 9.0A
, not 7.0A
)\Include\gl
folder. If there is no gl
folder, create a new one.glut32.lib
, glut.lib
and paste them in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib
folder. Now you can create visual c++ console application project and include glut.h header file then you can write code for GLUT project.
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
#pragma comment(lib, "glaux.lib")
#include <gl/GL.h>
#include <gl/GLU.h>
#include <gl/GLAUX.H>
#include <gl/GLUT.H>
Upvotes: 1