A friend convinced me that I should be using OpenGL over DirectX and I can understand his reasoning which brought me to the NeHe site. I am trying to follow the tutorials but I get the following error:
Main.obj : error LNK2019: unresolved external symbol _gluPerspective@32 referenced in function "void __cdecl ReSizeGLScene(int,int)" (?ReSizeGLScene@@YAXHH@Z)
I have the following code segments in my project that I think are relevant:
#include <windows.h> // Header File For Windows
#include <gl/gl.h> // Header File For The OpenGL32 Library
#include <gl/glu.h>
#include <SDL_opengl.h>
----------------------------
GLvoid ReSizeGLScene(GLsizei width, GLsizei height){
if(height == 0)
height =1;
glViewport(0, 0, width, height);
glMatrixMode(GL_PROJECTION); // Select The Projection Matrix
glLoadIdentity(); // Reset The Projection Matrix
// Calculate The Aspect Ratio Of The Window
gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,0.1f,100.0f);
glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix
glLoadIdentity(); // Reset The Modelview Matrix
}
It should be noted that I don't seem to have an opengl library file on my computer. I assume that's a problem but I'm not entirely certain where I should be downloading a new one from.
I am using glew and SDL as per my friend's advice.
Any help on any of the above would be greatly appreciated as this has been a cause of massive stress for me. Additionally, any better tutorials than NeHe would be great since they seem to be several years old and I'm sure they're deprecated by now...


















