GLSL - Unresolved Visual C ++ Appearance

I am getting started with GLSL. What should I do to solve this problem:

error LNK2001: unresolved external symbol _pglLinkProgram
error LNK2001: unresolved external symbol _pglAttachShader
error LNK2001: unresolved external symbol _pglCompileShader
error LNK2001: unresolved external symbol _pglShaderSource
error LNK2001: unresolved external symbol _pglCreateShader
error LNK2001: unresolved external symbol _pglCreateProgram
error LNK2001: unresolved external symbol _pglGetProgramInfoLog
error LNK2001: unresolved external symbol _pglGetProgramiv
error LNK2001: unresolved external symbol _pglUseProgram

      

+1


source to share


3 answers


You seem to be using some kind of library that wraps GL entry points (the entry points you specify are not direct GL entry points).

This library (GLEE?) Probably has a .lib file to link to.



From the GLEE page (assuming based on a quick search for users using the p prefix for GL calls):

Examples of using

To use GLee, include GLee.h and then simply link to GLee.lib, or alternatively add GLee.c to your project.

+1


source


You need to link your program with opengl32.lib, see here .



0


source


I recommend that you start using GLEW as OpenGL> 1.5 on Windows is a bit of a pain in the ass. This will give you all the OpenGL entry points without using extension pointers.

0


source







All Articles