Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Undefined symbol argc with Qt 6.10.2

Undefined symbol argc with Qt 6.10.2

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 3 Posters 204 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.
  • richferraraR Offline
    richferraraR Offline
    richferrara
    wrote last edited by
    #1

    I have a Qt Widgets project that I am trying to build in Qt Creator using the LLVM-MinGW 17.0.6 64-bit kit. It builds fine using Qt 6.10.0, but when I build the same project using Qt 6.10.2 I get the following error message:

    ld.lld: error: undefined symbol: __declspec(dllimport) __argc
    referenced by libQt6EntryPoint.a(qtentrypoint_win.cpp.obj):(.refptr.__imp___argc)

    Both PCs are running Windows 11.

    jsulmJ 1 Reply Last reply
    0
    • richferraraR Offline
      richferraraR Offline
      richferrara
      wrote last edited by
      #4

      I figured out the problem. When I installed Qt 6.10.2, I selected "Qt/Build Tools/LLVM-MinGW 17.0.6 64-bit" but not "Qt/Qt 6.10.2/LLVM-MinGW 17.0.6 64-bit". So it was trying to link my LLVM-MinGW project with the MinGW version of libQt6EntryPoint.a.

      1 Reply Last reply
      4
      • richferraraR richferrara

        I have a Qt Widgets project that I am trying to build in Qt Creator using the LLVM-MinGW 17.0.6 64-bit kit. It builds fine using Qt 6.10.0, but when I build the same project using Qt 6.10.2 I get the following error message:

        ld.lld: error: undefined symbol: __declspec(dllimport) __argc
        referenced by libQt6EntryPoint.a(qtentrypoint_win.cpp.obj):(.refptr.__imp___argc)

        Both PCs are running Windows 11.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote last edited by
        #2

        @richferrara Did you do a clean rebuild after changing Qt version?
        Did you try with a small reproducer?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote last edited by
          #3

          Sounds like a regression. Please do open a bug report.

          1 Reply Last reply
          0
          • richferraraR Offline
            richferraraR Offline
            richferrara
            wrote last edited by
            #4

            I figured out the problem. When I installed Qt 6.10.2, I selected "Qt/Build Tools/LLVM-MinGW 17.0.6 64-bit" but not "Qt/Qt 6.10.2/LLVM-MinGW 17.0.6 64-bit". So it was trying to link my LLVM-MinGW project with the MinGW version of libQt6EntryPoint.a.

            1 Reply Last reply
            4
            • SGaistS SGaist has marked this topic as solved

            • Login

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