I've just have the same problem, but fighting with the tool arrive to a solution, you must have this in the linker parameter/options
-lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32
in the -lwinmm...