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. Solution: Getting error C2953 _CrtEnableIf after upgrading Visual Studio
QtWS25 Last Chance

Solution: Getting error C2953 _CrtEnableIf after upgrading Visual Studio

Scheduled Pinned Locked Moved Solved General and Desktop
1 Posts 1 Posters 511 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.
  • P Offline
    P Offline
    Paul Thompson
    wrote on last edited by
    #1

    Just a PSA about an error that had me scratching my head a while. Somebody else might get the same problem, so I though I'd post here.

    We're using Qt 5.7.1 and Qt Creator, building C++ on Windows using MSVC2015.

    I'd recently updated Visual Studio 2017 (not 2015) to do some work on a different, unrelated project for which I needed some web development modules I hadn't previously installed.

    I then needed to build one of my Qt C++ projects. Nothing would build - error C2953 in one of the Windows header files.

    Easy solution: rebuild the project. Don't just build it. The reason is that the VS2017 update process had updated the Platform SDK, which had a system-wide effect and my precompiled headers had the previous SDK's contents, and the newer build was trying to use the latest.

    One of those things which is so obvious once you figure it out...

    1 Reply Last reply
    2

    • Login

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