Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Win 32 Release mode : LINK : fatal error LNK1104: cannot open file "qtmain.lib"

    General and Desktop
    3
    5
    2382
    Loading More Posts
    • 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.
    • kaleem
      kaleem last edited by

      Hi,
      I am getting the following error when building the application in Release mode with VC++ 6.0 ,it is compiling and linking fine in debug mode my Qt open source version 4.4.3
      Win 32 Release mode : LINK : fatal error LNK1104: cannot open file "qtmain.lib"
      Thanks in advance

      K 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by

        VC++ 6.0 and Qt 4.4.3?!
        Why such ancient software?

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

        kaleem 1 Reply Last reply Reply Quote 0
        • kaleem
          kaleem @jsulm last edited by

          @jsulm ya its very old system but still using due to some dependencies. do you have any suggestions to overcome the problem which i have raised thanks

          1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion last edited by

            Is Qt 4.4.3 you're using compiled with VC++ 6.0?

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

            1 Reply Last reply Reply Quote 0
            • K
              KeithS @kaleem last edited by

              @kaleem

              If it's not finding qtmain.lib in release mode, but links OK in debug mode check what you are linking to in debug mode (go to the project properties, linker -> input and check 'additional dependencies'. Is there a qtmain.lib or qtmaind.lib?

              Maybe your Qt release build is incomplete and missing qtmain.lib. Or maybe the library path is wrong.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post