Skip to main content
GameDev.net gamedev.net
🔒 Locked

Where's wglGetProcAddress()?

Started by fig May 28, 2008 at 3:44 AM 1 replies 2.7k views
Original Post
fig
fig
I'm trying to use GLee to load extensions, as you do.. But I get unresolved external errors. Namely - wglGetProcAddress(), wglGetCurrentDC() and glGetString(). I'm using Visual C++ 2008 Express in Windows XP. I've included GLee.h and GLee.c to the project, rather than linking to the lib. I also get the exact same errors with GLEW. Any ideas?
biggoron
biggoron
Link gdi32.lib
(It's something like that)
fig
fig
I think I should change my name to something similar to yours. Big Moron :)

I didn't know I had to link opengl32.lib. :p

Once I noticed that gdi32.lib and others were linked by default, I realised what was wrong.

Thanks for the help.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.