Can't find Precompiled headers property in visual studio 2022

kim 0 Reputation points
2023-01-20T06:18:28.9466667+00:00

When I #include "StdAfx.h"; it return error code : E1696. So I try to check "Precompiled headers" in project Property. but does not exist. I even tried to reinstall VS2022 and install the SDK but the problem is still not solved.

I have searched for a similar question/answer but was unable to fine one.

This is my property capture file. "Precompiled headers" should exist under C/C++ property, but does not.

capture

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,361 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 119K Reputation points
    2023-01-20T08:48:07.8833333+00:00

    Precompiled headers do not seem available for your kind of project: https://learn.microsoft.com/en-us/cpp/linux/prop-pages/c-cpp-linux?view=msvc-170.

    This option is not crucial.

    1 person found this answer helpful.
    0 comments No comments

  2. kim 0 Reputation points
    2023-01-20T08:48:19.17+00:00

    Thx your comment. finally, I found problem.

    I just followed wrong reference.

    My goal is Linux C++ console but reference talk about window C++

    Linux project doesn't have "Precompiled headers" property

    0 comments No comments

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.