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. Win 32 Release mode : LINK : fatal error LNK1104: cannot open file "qtmain.lib"
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 2.6k 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.
  • kaleemK Offline
    kaleemK Offline
    kaleem
    wrote on last edited by
    #1

    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
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

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

      kaleemK 1 Reply Last reply
      0
      • jsulmJ jsulm

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

        kaleemK Offline
        kaleemK Offline
        kaleem
        wrote on last edited by
        #3

        @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
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0
          • kaleemK kaleem

            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 Offline
            K Offline
            KeithS
            wrote on last edited by
            #5

            @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
            0

            • Login

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