So, I understand that you did not determine the path to your library.
Right click Project -> Properties
In the configuration properties on the "Linker" tab, select "General" in the "Additional library directories", select the path gdi32.lib

Then go to the "Enter" tab (below on the "General" tab) Double-click or select edit to add gdi32.lib

Finally, add your "gdi32.lib", then click "OK."

By the way, in the final edition of Visual Studio 2013, by default it has gdi32.lib
Hope it solves your problem.
Ahmet Tavli Nov 08 '15 at 10:50 2015-11-08 22:50
source share