visual studio 2022 stopped recognising C++

Ajay Dhar 21 Reputation points
2022-11-19T05:26:38.857+00:00

Today my visual studio 2022 community edition stopped recognizing C++ statements. Until yesterday it was recognizing C++ correctly. It gives errors starting from #include <iostream>. I tried updating to the new version. After updating still it gives errors.

Developer technologies | C++
{count} votes

Accepted answer
  1. Minxin Yu 13,501 Reputation points Microsoft External Staff
    2022-11-21T09:17:34.07+00:00

    Hi, @Ajay Dhar
    Welcome to Microsoft Q&A!

    Glad to know you've resolved this issue! The issue is caused by an incorrectly installed C++ workload.
    In visual studio installer:
    262429-image.png
    Project properties:
    262470-image.png
    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.