PCH Warning: header stop cannot be in a macro or #if block - Visual C++ 2010 Express SP1

前端 未结 11 582
不知归路
不知归路 2020-12-07 23:53

This is pasted from a website, which presumably was working. I did some googling and found that the issue I have now is a result of Visual C++ 2010 SP1, which I downloaded t

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 00:25

    You probably used a project template to get started and threw away the pre-generated source code files. Those project templates like to turn on precompiled headers because it is such a time-saver. Right-click your project in the Solution Explorer window, Properties, C/C++, Precompiled Headers. Change the "Precompiled Header" setting to "Not Using".

提交回复
热议问题