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. LINK 1104 Error
Forum Update on Monday, May 27th 2025

LINK 1104 Error

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 999 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.
  • L Offline
    L Offline
    lee64456546
    wrote on last edited by
    #1

    I am using QtCreator 4.8.0 to build my project, but i always get " error: LNK1104: cannot open file 'libxl-3.8.2.0\lib\libxl.lib'", I checked the .lib file is not occupied by other programs. And when i use VS2017 to build the same Qt project, it will success. Can anyone support ? Thanks.

    jsulmJ 1 Reply Last reply
    0
    • L lee64456546

      I am using QtCreator 4.8.0 to build my project, but i always get " error: LNK1104: cannot open file 'libxl-3.8.2.0\lib\libxl.lib'", I checked the .lib file is not occupied by other programs. And when i use VS2017 to build the same Qt project, it will success. Can anyone support ? Thanks.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @lee64456546 How do you build the project in QtCreator? Using qmake?

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

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lee64456546
        wrote on last edited by
        #3

        yes, i use qmake to build my project @jsulm

        jsulmJ 1 Reply Last reply
        0
        • L lee64456546

          yes, i use qmake to build my project @jsulm

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @lee64456546 Can you show your pro file?

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

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lee64456546
            wrote on last edited by
            #5

            QT += core gui
            QT += sql
            greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

            TARGET = Relationships
            TEMPLATE = app

            DEFINES += QT_DEPRECATED_WARNINGS

            CONFIG += c++11

            INCLUDEPATH +=
            libxl-3.8.2.0/include_cpp

            LIBS +=
            libxl-3.8.2.0/lib/libxl.lib

            @jsulm

            jsulmJ 1 Reply Last reply
            0
            • L lee64456546

              QT += core gui
              QT += sql
              greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

              TARGET = Relationships
              TEMPLATE = app

              DEFINES += QT_DEPRECATED_WARNINGS

              CONFIG += c++11

              INCLUDEPATH +=
              libxl-3.8.2.0/include_cpp

              LIBS +=
              libxl-3.8.2.0/lib/libxl.lib

              @jsulm

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @lee64456546 said in LINK 1104 Error:

              libxl-3.8.2.0/lib/libxl.lib

              You're using a relative path. You should rather use

              LIBS += $$PWD/libxl-3.8.2.0/lib/libxl.lib
              

              Adjust the path above if needed to your directory structure.

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

              L 1 Reply Last reply
              5
              • jsulmJ jsulm

                @lee64456546 said in LINK 1104 Error:

                libxl-3.8.2.0/lib/libxl.lib

                You're using a relative path. You should rather use

                LIBS += $$PWD/libxl-3.8.2.0/lib/libxl.lib
                

                Adjust the path above if needed to your directory structure.

                L Offline
                L Offline
                lee64456546
                wrote on last edited by
                #7

                @jsulm your method works, thanks.

                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