Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

setting up GLEW windows?

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

like image 477
pooya Avatar asked Aug 05 '10 07:08

pooya


People also ask

What is the difference between GLEW and GLFW?

GLFW and freeglut are alternative for us according to our need we can choose any one but GLEW is different from them which is used for run time loading of the OpenGL API.

Does GLEW include OpenGL?

GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform. OpenGL core and extension functionality is exposed in a single header file. GLEW has been tested on a variety of operating systems, including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris.


1 Answers

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.

like image 118
Calvin1602 Avatar answered Sep 23 '22 06:09

Calvin1602