problems setting up opengl using visual studio

Started by
2 comments, last by com_gom 19 years, 3 months ago
Iam using visual studio for my work in opengl but Iam having some problems setting it up.Iam getting linking errors during run time.The code is compiling but on running it gives linking errors.I have inserted opengl32.lib glu32.lib glut32.lib and the corresponding dlls but iam still getting errors. these are the lind of errors I am getting... Linking... as.obj : error LNK2001: unresolved external symbol _glFlush as.obj : error LNK2001: unresolved external symbol _glEnd
Advertisement
might help

#pragma comment( lib, "opengl32.lib" )
Have you included the OpenGL header files?

#include <GL/gl.h>
#include <GL/glu.h>

EDIT: Of course you have. This is a linking error. Doublecheck that you've added the libs properly. Check the help docs for whatever IDE you're using.
I tried what you guys said but it is still giving the same errors..I was wondering if I have to include some other libs like gl.lib and glu.lib except
for the 3 lib files I have already added.

This topic is closed to new replies.

Advertisement