Fatal error LNK1104: cannot open file 'gdi32.lib'

后端 未结 7 2161
长情又很酷
长情又很酷 2021-01-01 11:39

Every time I try to run my code I get this error. I\'ve tried everything, installing the SDK, but I still get the same error.

1>------ Build started: Proj         


        
7条回答
  •  执念已碎
    2021-01-01 11:45

    To solve it you will need to locate a folder containing the gdi32.lib file.

    For my system I found it in C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x86.

    Simply add it into the property sheet for your project. As described in other posts, menu ProjectProperties then VC++ directories. Add the path at the top.

提交回复
热议问题