I have built the glew lib so many times. My last build removed the undefined references to all the shader functions such as glCreateShader(). I think this build
Save yourself a lot of trouble and just add the glew.c to your project directly. I do not understand why people fight so hard to link to it externally. The license is friendly, and it is only one source file. Just remember to #define GLEW_STATIC.