which compiler do you use ?
all you need is gdi32 (-lgdi32 for mingw, gdi32.lib for VS (i think))
gdi32
-lgdi32
gdi32.lib