How to avoid precompiled headers

前端 未结 4 2030
说谎
说谎 2020-11-27 04:19

I am trying to compile a simple VS program in C++ as an assignment for class. We only ever include and I keep getting this error:

4条回答
  •  没有蜡笔的小新
    2020-11-27 05:01

    You can create an empty project by selecting the "Empty Project" from the "General" group of Visual C++ projects (maybe that project template isn't included in Express?).

    To fix the problem in the project you already have, open the project properties and navigate to:

    Configuration Properties | C/C++ | Precompiled Headers
    

    And choose "Not using Precompiled Headers" for the "Precompiled Header" option.

提交回复
热议问题