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

前端 未结 11 557
不知归路
不知归路 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:21

    I found that my .h file was actually being treated as a .cpp file! Right click on the file in the Solution Explorer > All Configurations > Item Type: C/C++ header

    Make sure the item type is not C/C++ compiler or other.

提交回复
热议问题