PDA

View Full Version : Using shaders in Visual C+++



alexandra
08-14-2006, 06:53 AM
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?? :(

thank you very much.
alexandra

k_szczech
08-14-2006, 02:22 PM
I guess "Nichtaufgeloestes externes Symbol" stands for "Unresolved external symbol" :)

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 ... inputIf 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.

alexandra
08-15-2006, 06:13 AM
thank u very much...