Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. cannot open file 'shell32.lib'
Qt 6.11 is out! See what's new in the release blog

cannot open file 'shell32.lib'

Scheduled Pinned Locked Moved Unsolved General and Desktop
shell32.lib
10 Posts 5 Posters 10.8k Views 2 Watching
  • 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.
  • P Offline
    P Offline
    Papa
    wrote on last edited by Papa
    #1

    I just installed Qt. The Terminal Program works, but the GUI Program fires up a error:
    :-1: error: LNK1104: cannot open file 'shell32.lib'

    What can I do to solve this problem?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      hi and welcome
      what gui program ?
      If you create a new GUI project. does it run?

      I assume you are on Windows?

      Also are you using mingw compiler or Visual Studio ?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Papa
        wrote on last edited by
        #3

        Do you have a Chrystal Ball?!!!
        Yes, in all accounts.
        Last question's answer is Visual Studio Community 2013/2015, both are installed.
        I also have Windows Kit installed.
        Thanks for the help

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          What Qt package did you install ? The one for VS2013 or VS2015 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Papa
            wrote on last edited by
            #5

            thanks everyone, the solution was to add this line
            WIN32:LIBS += C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\um\x64\shell32.lib
            in the .pro file.
            I solved the problem, thanks.

            P 1 Reply Last reply
            1
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              In the absolute, that's not the correct solution, that lib should be found automatically.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              N 1 Reply Last reply
              0
              • P Offline
                P Offline
                Papa
                wrote on last edited by
                #7

                Yeah, I hear ya!
                However, I am just a user, and a newbie, soooo.... there isn't much I can do ;)
                If there is an engineer interested in the researching this issue, I am willing to help.
                Thanks for the input SGaist.

                1 Reply Last reply
                0
                • P Papa

                  thanks everyone, the solution was to add this line
                  WIN32:LIBS += C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\um\x64\shell32.lib
                  in the .pro file.
                  I solved the problem, thanks.

                  P Offline
                  P Offline
                  Psunshine
                  wrote on last edited by
                  #8

                  @Papa Hello.
                  I also met this problem today.I tried to find my lib from"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\um\x64",but I can not find the "shell32.lib".Then I tried to reinstall WDK10.0,but it's useless.I am still looking for a solution.

                   ̄へ ̄

                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    In the absolute, that's not the correct solution, that lib should be found automatically.

                    N Offline
                    N Offline
                    Nethzz
                    wrote on last edited by
                    #9

                    @SGaist plz can you tell me how to find shell.32 lib automatically??
                    ":-1: error: LNK1104: cannot open file 'shell32.lib'"

                    SGaistS 1 Reply Last reply
                    0
                    • N Nethzz

                      @SGaist plz can you tell me how to find shell.32 lib automatically??
                      ":-1: error: LNK1104: cannot open file 'shell32.lib'"

                      SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Nethzz said in cannot open file 'shell32.lib':

                      @SGaist plz can you tell me how to find shell.32 lib automatically??
                      ":-1: error: LNK1104: cannot open file 'shell32.lib'"

                      How are you linking to it ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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