Jump to content
  • Advertisement
Sign in to follow this  
lincsimp

OpenGL compiling glsl example

This topic is 4805 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
".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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!