How to avoid precompiled headers

前端 未结 4 2029
说谎
说谎 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:24

    You can always disable the use of pre-compiled headers in the project settings.

    Instructions for VS 2010 (should be similar for other versions of VS):

    Select your project, use the "Project -> Properties" menu and go to the "Configuration Properties -> C/C++ -> Precompiled Headers" section, then change the "Precompiled Header" setting to "Not Using Precompiled Headers" option.


    If you are only trying to setup a minimal Visual Studio project for simple C++ command-line programs (such as those developed in introductory C++ programming classes), you can create an empty C++ project.

提交回复
热议问题