setting up GLEW windows?

女生的网名这么多〃 提交于 2019-12-10 15:26:54

问题


I have visual studio 2010 and I want to set up glew.h on it. i do this step but still I have linker error: 1.download glew pack

2.copy .h files to C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include

3.copy .lib files to C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib

4.copy glew32.dll to C:\Windows\SysWOW64

5.and finally go to myproject properties then go to linker->input add glew32.lib, glu32.lib, and opengl32.lib to Additional Dependencies

but I still have this error:

error LNK2001: unresolved external symbol __imp____glewBlendEquation


回答1:


I've been confronted to the same issue today, so even if I'm one month late for the answer, just add GLEW_STATIC to your preprocessor's definitions.




回答2:


That's a common problem. Just download the source, recompile it and it will work.



来源:https://stackoverflow.com/questions/3412714/setting-up-glew-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!