Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-676

Sporadic Link Error after deleting qtvars_Win32_$(Configuration).props

    XMLWordPrintable

Details

    • Windows
    • ceaee1632851b7915d321f30263bbb1919551355

    Description

      For Configurations Debug and Release, sometimes the following error occurs. Let's concentrate on Debug at first:

      Create a new Qt Class Library project (static lib). Create a new Qt Console Project which references the other project, navigate to the Console Project folder and delete the file Debug/qtvars_Win32_Debug.props. After that the 1st build fails with a link error:

      {{ 1>LINK : warning LNK4001: no object files specified; libraries used}}
      {{ 1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup}}

      The 2nd and other builds work again, because the file is regenerated but somehow the settings don't make it into the 1st build after regeneration.

      Background: Normally you exclude folder Debug completely from your SCM, so effectively the file qtvars_Win32_Debug.props is missing after the checkout. Besides, the file contains absolute paths to Qt installation dir which breaks the build if the file is in SCM and the path on the system doing the checkout is different.

      May be related to QTVSADDINBUG-630

      Currently this breaks our build server, on which the error happens more frequently, possibly due to SSD performance on my machine > performance on the build server.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mecfc Miguel Costa
            m.denk Michael Denk
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes