I'm using "i686-w64-mingw32" and trying to link to GLEW.
Here is a test main.c I am using:
#define GLEW_STATIC
#include <gl/glew.h>
int main() {
glewInit();
return 0;
}
(I know that this is not the correct way to use GLEW since I haven't correctly initialised and binded an OpenGL context - I'm just trying to get GLEW to link correctly and I'll worry about using it correctly later.)
The line I am using to compile is:
gcc main.c -o bin.exe -lglew32s -lglu32 -lopengl32
However I receive this error:
main.c:(.text+0xc): undefined reference to `glewInit@0'
collect2.exe: error: ld returned 1 exit status