compiling glsl example
Hi
I downloaded the glsl example from: http://www.lighthouse3d.com/opengl/glsl/index.php?oglexample1
Whenever I try to compile it in dev-cpp I get loads of errors, eg:
[Linker error] undefined reference to `_imp____glewCreateShaderObjectARB'
what am i doing wrong?
cheers
You probably need to add glew's lib to your linker options, the same way you need to add opengl32.lib, glu32.lib, etc.
cool thanks, I had these linker options:
-lopengl32
-lglu32
../../../../Dev-Cpp/lib/libglut.a
../../../../Dev-Cpp/lib/libglu32.a
../../../../Dev-Cpp/lib/libglaux.a
../../../../Dev-Cpp/lib/libglut32.a
../glew-1.3.3-win32/glew/lib/glew32.lib
../glew-1.3.3-win32/glew/lib/glew32s.lib
didn't know which it neeeded... but it doesn't work.. I downloaded glew couple of days ago, what's wrong?...
cheers
-lopengl32
-lglu32
../../../../Dev-Cpp/lib/libglut.a
../../../../Dev-Cpp/lib/libglu32.a
../../../../Dev-Cpp/lib/libglaux.a
../../../../Dev-Cpp/lib/libglut32.a
../glew-1.3.3-win32/glew/lib/glew32.lib
../glew-1.3.3-win32/glew/lib/glew32s.lib
didn't know which it neeeded... but it doesn't work.. I downloaded glew couple of days ago, what's wrong?...
cheers
".lib" files don't work with Dev-C++. IIRC Dev comes with a tool that converts from .lib to .a, which is the format you need. I'm sure google can tell you more.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement