PDA

View Full Version : error C2065: 'PFNWGLGETEXTENSIONSSTRINGARBPROC' :



newsb
10-14-2011, 07:46 PM
Hi,

Quick question: I got some code which compiles perfectly under Linux. Then I moved the code to Windows and get (MS Visual Studio 2010):

error C2065: 'PFNWGLGETEXTENSIONSSTRINGARBPROC' : undeclared identifier


Google doesn't help me very much. Could somebody here please suggest what it wants me to #include in order to declare this symbol/identifier?

Alfonse Reinheart
10-14-2011, 09:53 PM
What are you using to load OpenGL function pointers (http://www.opengl.org/wiki/OpenGL_Loading_Library)?

Aleksandar
10-15-2011, 01:22 AM
Just include wglext.h.

Also exclude glxext.h if it is still included since it is for Linux only. It wouldn't make problems, but you don't need it on Windows. Wglext is the Windows counterpart.

newsb
10-15-2011, 04:39 AM
Ah, thanks a lot... I also think I struggled quite a bit about the ordering of something (coming before something else)... If other people get this problem: I found out that I/you should *NOT* download the binary (at least 64-bit) version from http://glew.sourceforge.net/index.html. (http://glew.sourceforge.net/index.html) Instead download the source version, because otherwise something will be missing...

Now my cross-platform code (win/linux), at least compiles on both platforms - thanks.