I had the same problem as you using the same software
try this:
Project , project option (Alt-p)
Parameter,
in linking editor field write

-lglu32
-lopengl32

lib/libgdi32.a