Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44862

missing shell32.lib when linking a qt5 app (msvc)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.4.0
    • Build System
    • None
    • msvc2013

    Description

      Tested msvc2013. The linker can not find _imp_CommandLineToArgvW@8. It's in shell32.lib. I see qtmain.lib use the function CommandLineToArgvW, and winmain.pro add -lshell32 flag. But qtmain.lib is a static lib, so that flag does nothing i think. I change a line in mkspecs/win32-msvc2013/qmake.conf

      QMAKE_LIBS_QT_ENTRY = -lqtmain

      to

      QMAKE_LIBS_QT_ENTRY = -lqtmain -lshell32

      and it works

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            ibingow wangbin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes