Jump to content
  • Advertisement
Sign in to follow this  
PGSCreativeDirector

glew and code::Blocks 10.5 issue

This topic is 2556 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

hello am having issues with trying to use glew i have added the linker flags like so


-lmingw32 -lSDLmain -lglew32 -lglew32s -lSDL -lSDL_image -lopengl32



iv included my glew include folder

iv included my glew lib folder

and iv included the glew32s.lib file

iv also done #define GLEW_STATIC

and glewInit

none of which worked

i downloaded from the glew website the binary version is there something wrong with it or am i missing something??

im using code::Blocks 10.5 and mingw :)

it wont compile when i do all those things above in code::Blocks 10.5 :(



heres my compiler errors :(


undefined reference to `_imp____glewCreateShader'|
obj\Debug\main.o||In function `SDL_main':|
undefined reference to `_imp__glewInit'|

please do help :)

Share this post


Link to post
Share on other sites
Advertisement

hello am having issues with trying to use glew i have added the linker flags like so


-lmingw32 -lSDLmain -lglew32 -lglew32s -lSDL -lSDL_image -lopengl32



iv included my glew include folder

iv included my glew lib folder

and iv included the glew32s.lib file

iv also done #define GLEW_STATIC

and glewInit

none of which worked

i downloaded from the glew website the binary version is there something wrong with it or am i missing something??

im using code::Blocks 10.5 and mingw :)

it wont compile when i do all those things above in code::Blocks 10.5 :(



heres my compiler errors :(


undefined reference to `_imp____glewCreateShader'|
obj\Debug\main.o||In function `SDL_main':|
undefined reference to `_imp__glewInit'|

please do help :)

Linker errors I see. With Mingw, the linking order matters. I know from my own projects, GLEW likes to come first or it won't link. Try putting it in front of SDL main. If that doesn't work, move it to the front and try mingw32 in other places. After some experimenting, I can usually find a permutation that works.

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!