compiling glsl example

Started by
3 comments, last by Promit 18 years, 11 months ago
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
Advertisement
You probably need to add glew's lib to your linker options, the same way you need to add opengl32.lib, glu32.lib, etc.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
Here's a link to the latest GLEW release.
Peace
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
".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.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.

This topic is closed to new replies.

Advertisement