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

stdafx and c++ version issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • 3.3.0
    • 3.3.0
    • Build-time integration
    • None
    • Windows
    • c51fdb382 (dev), 080c5a971 (dev)

    Description

      I'm testing version 3.3.0 and its not working properly, my project no lnger recognize the C++ version set, i have C++20 but i keep getting message:

      1>  C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34321\include\ranges(11): warning STL4038: The contents of <ranges> are available only with C++20 or later.

      I also getting an issue related to stdafx:

      1>  C:\Users\CAIO\source\repos\QtWidgetsApplication3\QtWidget.10F28BAB\x64\Debug\qt\moc\moc_qtwidgetsapplication3.cpp(9,10): error C1083: Cannot open include file: 'stdafx.h': No such file or directory

      Why is it searching for stdafx on moc files?

       

      Both issues only happen on 3.3.0

      I created a simple new qt widgets project and just add #include <ranges>

      https://i.imgur.com/oFHKU3r.png

      Attachments

        1. moc_issue.zip
          4 kB
        2. image-2024-10-10-15-29-25-350.png
          image-2024-10-10-15-29-25-350.png
          120 kB
        3. cmdc++20.zip
          3 kB

        Issue Links

          For Gerrit Dashboard: QTVSADDINBUG-1222
          # Subject Branch Project Status CR V

          Activity

            People

              mecfc Miguel Costa
              cesa caio cesar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes