Using shaders in Visual C+++

I ve been trying to use commands like glCreateShader, glCompileShader and so on.

I have the latest glew.h and did all instructions that are described on that page http://www.lighthouse3d.com/opengl/glsl/

i did all the changes in project->properties->linker … input

but it doesnt work.

error message :
ogl.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp____glewCompileShader

but the command ist glCompileShader not glew.

Does anybody know why?? :frowning:

thank you very much.
alexandra

I guess “Nichtaufgeloestes externes Symbol” stands for “Unresolved external symbol” :slight_smile:

There are few ways of getting this error but the most common one is including glew.h and nopt adding glew.c or glew.lib to your project.

i did all the changes in project->properties->linker … input
If you added glew.lib to your project then you could be facing call convention inconsistency problem. This happens when your code uses C++ and a library is compiled as C, but glew.h does take care of it. Just in case try expermienting with call convention in your project.

but the command ist glCompileShader not glew.
This is how glew works - it uses #define to map glCompileShader to it’s own glewCompileShader.

thank u very much…

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