Advertisement

Nehe, GLu32.lib and visual studio.net 2002

Started by
1 comment, last by Cris OGL 18 years, 11 months ago
Hi all. I use visual studio 2002.net and I can run opengl in VC ++ applications (nehe's ones), but if I create a new win32 "windows application", "empty project", and then create a new .cpp file and paste nehe's code in it, the code gets compiled but not linked. I get messages like: "unresolved external symbol _gluPerspective@32 referenced in..." Do I need to link the opengl libraries? If so, anybody knows how to do it in visual studio.net 2002? nehe's tutorial says I have to go to project/settings... and then link tab but there is no "setting" under "project" on VC++.net 2002's menu and I couldn't find the "link" page anywhere. thx a lot [Edited by - Cris OGL on September 28, 2005 5:44:07 PM]
I don't have that IDE so can't tlel you where to look, but you can simply add:

#pragma comment( lib, "OpenGL32.lib")
#pragma comment( lib, "GLU32.lib")

At the top of your header file and it will link in those libraries.
Advertisement
THANK u so much. That worked!

This topic is closed to new replies.

Advertisement