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. Linker error when building simple GUI app
Forum Updated to NodeBB v4.3 + New Features

Linker error when building simple GUI app

Scheduled Pinned Locked Moved General and Desktop
7 Posts 6 Posters 5.5k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    cenarius2
    wrote on last edited by
    #1

    I am using Qt 5.00 and msvc2010. When I create a new GUI application project and try to build it I get the following error:

    bq. error: LNK1123: failure during conversion to COFF: file invalid or corrupt

    Any idea?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      master of disaster
      wrote on last edited by
      #2

      Microsoft says this error is caused by a bug. It is fixed in service pack 1 which should be downloaded with Start->windows updates.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Taamalus
        wrote on last edited by
        #3

        Sorry to interrupt but this did not work for me.
        -I have VS 2012 RC and am not sure how trace where Qt Creator accesses which compiler version. I installed the SP1 for 2010 just in case, but how do I tell Creator to access it? VS 2012 RC is equivalent to 2010 + SP1.-
        Based on my own set up, I needed to uninstall VS 2012, like in super clean, and any other VS version and simply install one version of 2010.
        This refers to the samples shipped with Qt5, -not my new project, my new project does compile so far-. But I want to find out how to fix this. If there is a way to have VS 2012 and Qt Creator working side by side, it would be nice, but not essential. :)

        ... time waits for no one. - Henry

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cenarius2
          wrote on last edited by
          #4

          I installed SP1 for VS2010 and the problem was solved.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            birinci2012
            wrote on last edited by
            #5

            Search for cvtres.exe
            file. may be you have more than one
            files in your computer. Search for this file.
            Then rename the old one for example to cvtres.eee
            after that your code must compile and run.....

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Behzad
              wrote on last edited by
              #6

              follow this "link":http://qt-project.org/forums/viewthread/24507/#116134
              cenarius2 solution is right.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tobias.hunger
                wrote on last edited by
                #7

                Check https://qt-project.org/wiki/Category:Tools::msvc

                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