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 to share