GLee in dynamic DLL?

Perhaps I’m doing something really stupid here but I can’t seem to get GLee working from within a dynamic DLL. If I compile as static it works fine but with dynamic DLL I get these errors

TestGlee error LNK2019: unresolved external symbol __imp__wglGetProcAddress@4 referenced in function ___GLeeGetProcAddress
TestGlee error LNK2019: unresolved external symbol __imp__wglGetCurrentDC@0 referenced in function ___GLeeGetExtStrPlat
TestGlee error LNK2019: unresolved external symbol __imp__glGetString@4 referenced in function ___GLeeGetExtensions

Is it possible to use GLee from within a dynamic DLL?

Put
#pragma comment(lib, “OPENGL32”)
somewhere into the GLee source.

That is, link to OpenGL.

It worked, thanks EvilOne.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.