|
From: Brian P. <br...@vm...> - 2009-05-13 13:57:26
|
vinit bansal wrote: > Hi, > > I have downloaded MESA v7.4. > I need to run a sample program which uses openGL 2.0 calls on Windows. > I have noticed that 2.0 calls are under a flag GL_GLEXT_PROTOTYPES in glext.h > I have defined this flag and I have tried to use a 2.0 call (in this > case glCreateShader(GLenum)). But it gives linker errors: > 1>gears.obj : error LNK2019: unresolved external symbol > _glCreateShader@0 referenced in function _init > 1>.\Debug/gears.exe : fatal error LNK1120: 1 unresolved externals. > > I am a beginner to openGL. > I don't think the gears sample program uses any 2.0 calls. > > I need help urgently. On Windows you need to use function pointers obtained with wglGetProcAddress() to call the OpenGL 2.0 functions (actually, OpenGL 1.3 and later, I believe). Probably the best thing to do is use GLEW: http://glew.sourceforge.net/ -Brian |