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

后端 未结 7 2097
长情又很酷
长情又很酷 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 12:05

    From what I understand you haven't defined the path of your library.

    Right click on Project --> Properties

    Under Configuration properties, on "Linker" tab, select "General" on "Additional Library Directories". Select the path of gdi32.lib:

    Then go to the Input tab (below on the General tab).

    Double Click or select edit to add gdi32.lib:

    Finally add your "gdi32.lib" and click OK.

    By the way, in Visual Studio 2013 ultimate edition, by default it has gdi32.lib.

    I hope it solves your problem.

    0 讨论(0)
提交回复
热议问题