Hi,
I'm trying to plot some scientific data with OpenGL. I want to use windows forms from .net, so I looked for a wrapper for openGL and i found this:
Article 16051/Creating-an-OpenGL-view-on-a-Windows-Form from codeproject.com (sorry, I'm not allowed to include links in this post)
I just copypasted the code from the tutorial and it compiles. Now I wanted to add a shader, so I included this line:
to the constructor of the example code. (so it looks like this: Paste YtsLK0vM at Pastebin.com).Code :GLuint vs = glCreateShader(GL_VERTEX_SHADER);
I now get 5380 warnings which look like this (all warnings and errors are translated by hand from german, so sorry if they don't sound exactly right):
Code :warning C4394: "__glewCopyTexSubImage3D": An application domain specific symbol should not be marked with __declspec(dllimport) C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\GL\glew.h 15043
And then these errors:
Code :5381 error LNK2020: Unresolved token (0A000016) __imp____glewCreateShader. GLwindow.obj (thats my file which includes the tutorial code) 5382 error LNK2020: Unresolved token (0A000024) __imp____glewCreateShader. OpenGL_test.obj (thats the name of the project) 5383 error LNK2001: Unresolved external symbol "__imp___glewCreateShader". OpenGL_test.obj 5384 error LNK2001: Unresolved external symbol "__imp___glewCreateShader". GLwindow.obj 5385 fatal error LNK1120: 3 unresolved external links. C:\Users\ME\Documents\Visual Studio 2008\Projects\OpenGL_test\Debug\OpenGL_test.exe
What I did:
I installed glew as it is advised on the website:
I copied
from the glew-1.10.0-win32-1.zip binary archive.Code :bin/Release/Win32/glew32.dll to Windows/system32 lib/Release/Win32/glew32.lib to Program files (x86)/Microsoft Visual Studio 9.0/VC/Lib lib/Release/Win32/glew32s.lib to Program files (x86)/Microsoft Visual Studio 9.0/VC/Lib include/GL/glew.h to Program files (x86)/Microsoft Visual Studio 9.0/VC/Include/GL include/GL/wglew.h to Program files (x86)/Microsoft Visual Studio 9.0/VC/Include/GL include/GL/glxew.h to Program files (x86)/Microsoft Visual Studio 9.0/VC/Include/GL
And I added the following to my project->linker->input->additional dependencies:
glew32.lib
openGL32.lib
glu32.lib
gdi32.lib
User32.lib
Any ideas what is wrong? I hope you can help me
Thanks in advance!
Best regards,
Nikolas