Michael Mancilla
Michael Mancilla

Reputation: 165

Setup GLEW + CodeBlocks

I want to make GLEW work with CodeBlocks and have been trying to get
the first method presented on the site to work.
This is the method to compile glew statically into the executable.
But I haven't managed to get it right.
I'm on a PC, Windows 7, running the CodeBlocks 10.05.

This is what I've done so far:

And with this the compilation will result in tons of warnings and errors.

Where did I go wrong?
I would be happy to share more information if necessary!

Upvotes: 1

Views: 6013

Answers (1)

user1252091
user1252091

Reputation:

You can eliminate those errors by linking your program with opengl32 and those warnings by defining GLEW_STATIC also in glew.c before the #includes.

In any case your program won´t work because you need to have a valid OpenGL context before you can use glewInit. You need to create one with glut/glfw/SDL/wglCreateContext/etc.

Upvotes: 4

Related Questions