Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. LNK1104: cannot open file 'gdi32.lib'
QtWS25 Last Chance

LNK1104: cannot open file 'gdi32.lib'

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 2.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bmcclure
    wrote on last edited by
    #1

    I simply cannot figure out what's going on here.

    I installed Visual Studio 2013 Express. It seems to work fine.

    I then downloaded the latest offline 64-bit Qt binary and installed it.

    When I try to compile a new project I have created in Qt Creator, I get the error: "LNK1104: cannot open file 'gdi32.lib'

    I have read all other topics that I can find on this matter, and they all seem to indicate that the Windows SDK is not installed or that Qt Creator is not configured properly.

    I have the Windows 8 SDK installed. But the thing is, there is no 'gdi32.lib' with the libraries that were installed with the Windows 8 SDK that I can find.

    I have checked in:
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib
    C:\Program Files (x86)\Windows Kits\8.0\Lib\Win8\um\x64
    C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64

    There are many lib files in each of those directories. But none of them are gdi32.lib. I feel like I must be missing something obvious, but I have no idea what.

    In the Compilers settings for Qt Creator, the one that is active for my kit is:
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat x86_amd64

    I'm not really sure what I should check or how to proceed in getting this working. I've spent hours troubleshooting and reading online and nothing has helped.

    I really appreciate any assistance that can be provided.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bmcclure
      wrote on last edited by
      #2

      Well I feel like an idiot.

      After all this troubleshooting and reading... all I needed to do was re-install the Windows 8.1 SDK and then everything just started working.

      Maybe someone else will run into a similar issue in the future. If so... try reinstalling the proper version of the Windows SDK and see if it helps!

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved