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

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

    Once you add a .cpp file and have it include the header this error should go away. I've read some where else this is a bug.

    0 讨论(0)
  • 2020-12-08 00:34

    1.Close the Project. 2.Reopen the project,and all ok. this is my expeirence.

    0 讨论(0)
  • 2020-12-08 00:40

    Rebuilding IntelliSense database solves the problem.

    1. Close Visual Studio
    2. Delete [SolutionName].sdf
    3. Delete DllWrappers.opensdf
    4. Delete ipch folder
    5. Open Visual Studio
    0 讨论(0)
  • 2020-12-08 00:42

    move the #include statements outside the #if #end block

    0 讨论(0)
  • 2020-12-08 00:43

    I had the same problem. My solution was to add a missing ';' at the end of a class definition. Although this does not seem to apply to your problem, others who come here with the same error might find this helpful.

    0 讨论(0)
提交回复
热议问题