I'm a new user, and I'm trying to make a project using mingw32 (so Windows platform)

This is what I did:

 - first attempt: downloaded win binary version
 - second attempt: I downloaded Cygwin and compiled glew. I obtained libglew32.a and glew32.dll

When I try to compile the test code I obtain the wanted result:
   Status: Using GLEW 1.3.4

This is my problem:
when I try to use "glGenFramebuffersEXT" I get from the linker

undefined reference to `_imp____glewGenFramebuffersEXT'

what's going on? please, can anyone help me?