cant build opengl exe in vc++
When I try and compile anything OpenGL in my Visual C++ I get zero errors and zero warnings but then when I build the .exe file there are about 20 linker errors all directed at the lines of the OpenGL code. If anyone know''s how I could possibley fix this please reply and also the errors started after I deleted all of the VC++ stuff because I wanted to install it onto anoter drive and there is no uninstall thin and when I run the install program that came with a disk and I tell it to remove all of the files, instead it just re-installed it to the old drive... and thats when I started to get all the opengl errors.
did u forget the #pragmas ?
#pragma comment (lib, "opengl32.lib")
#pragma comment (lib, "glu32.lib")
#pragma comment (lib, "opengl32.lib")
#pragma comment (lib, "glu32.lib")
A newbie error is to forget to link the library.
In VC++ it sounds like Project/Add to Project/Files/*.Lib
Then add opengl32.lib (you use gl.h) and glu32.lib (if you use glu.h)
In VC++ it sounds like Project/Add to Project/Files/*.Lib
Then add opengl32.lib (you use gl.h) and glu32.lib (if you use glu.h)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement