• FEATURED

View more

View more

View more

### #2wolfscaptain  Members

Posted 16 November 2010 - 10:49 AM

Don't know about SFML, but you need to add mingw32 before everything, and change glew32 to glew32s and add a definition of GLEW_STATIC before including GLEW (don't ask me why, it simply wont work without static linking in Windows).

#define GLEW_STATIC
#include <GL/glew.h>

### #3assainator  Members

Posted 17 November 2010 - 02:03 AM

Quote:
 and change glew32 to glew32s and add a definition of GLEW_STATIC before including GLEW (don't ask me why, it simply wont work without static linking in Windows).

Not true, I have glew working with the dll on windows.
Next to that, I'm also using glew in combination with sfml so that isn't a problem.

The only thing I should note is that I'm using Visual studio 2008/2010 express

assainator

### #4PaloDeQueso  Members

Posted 19 November 2010 - 10:23 AM

I am trying to use libglew32s.a but I can't seem to find it. And glew doesn't provide mingw makefiles. Is there an easy way to compile the static version of the library?

### #5karwosts  Members

Posted 19 November 2010 - 10:35 AM

Not sure what issues you had with visual studio, but I can pretty much assure that you could get this working in 10 minutes on VC++. A lot more people around here use it and could probably help you too, more than mingw anyway.

Up to you what you want to do though :\

### #6PaloDeQueso  Members

Posted 19 November 2010 - 10:54 AM

In the mingw glew lib I downloaded that was precompiled, I found that libglew32.dll.a was actually the static lib, and to solve my other linker errors, I actually linked everything twice for now in my link line in the CMakeLists.txt file until I figure out the exact proper link order.

Thanks for everyone's help.

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.