Thanks for the reply.

I really solved my problem... It seems that if I have glew32.dll and libglew32.a in my lib directory... it cant link properly. Using only the dll did the trick.
Thank you anyway.