Original Post
I've followed GLEW's instructions as best I can, but I can't get my project to run.
I'm on Vista 32 with an nVidia Quadro NVS 140M card.
I can get an OpenGL 3.3 forward-compatibility context + core profile via GLFW.
GLEW's bundled utility progs confirm the availability of 3.3 functions on my machine.
I have included glew.c in my program, and #included. I have linked:
libopengl32.a
libglu32.a
...plus all the stuff GLFW requires.
The program compiles fine and glewInit() returns GLEW_OK . A blank-screen (no drawing) test confirms I can get a GL window.
BUT, when execution gets to the first OpenGL function, there's a segfault. It looks like the function pointer is null. I'm guessing GLEW isn't fetching them for me, but being as how GLEW's all preprocessor macros-on-top-of-macros, the debugger can't tell me what's (not) happening.
Is anybody else statically linking GLEW with MinGW? How did they set it up?
I'm on Vista 32 with an nVidia Quadro NVS 140M card.
I can get an OpenGL 3.3 forward-compatibility context + core profile via GLFW.
GLEW's bundled utility progs confirm the availability of 3.3 functions on my machine.
I have included glew.c in my program, and #included
libopengl32.a
libglu32.a
...plus all the stuff GLFW requires.
The program compiles fine and glewInit() returns GLEW_OK . A blank-screen (no drawing) test confirms I can get a GL window.
BUT, when execution gets to the first OpenGL function, there's a segfault. It looks like the function pointer is null. I'm guessing GLEW isn't fetching them for me, but being as how GLEW's all preprocessor macros-on-top-of-macros, the debugger can't tell me what's (not) happening.
Is anybody else statically linking GLEW with MinGW? How did they set it up?