相关疑难解决方法(0)

PCH警告:标头停止不能在宏或#if块中 - Visual C++ 2010 Express SP1

这是从一个可能正在运作的网站上粘贴的.我做了一些谷歌搜索,发现我现在的问题是我今天下载的Visual C++ 2010 SP1的结果,现在给我这个错误:

PCH Warning: header stop cannot be in a macro or #if block.

希望有人能够帮助我!

#ifndef APP_STATE_H
#define APP_STATE_H

#include "Framework.h"

class AppState; //this line is giving me the error

//define two classes

#endif
Run Code Online (Sandbox Code Playgroud)

Framework.h:

#ifndef OGRE_FRAMEWORK_H
#define OGRE_FRAMEWORK_H

#include <OgreCamera.h>
#include <OgreEntity.h>
#include <OgreLogManager.h>
#include <OgreOverlay.h>
#include <OgreOverlayElement.h>
#include <OgreOverlayManager.h>
#include <OgreRoot.h>
#include <OgreViewport.h>
#include <OgreSceneManager.h>
#include <OgreRenderWindow.h>
#include <OgreConfigFile.h>

#include <OISEvents.h>
#include <OISInputManager.h>
#include <OISKeyboard.h>
#include <OISMouse.h>

class OgreFramework : public Ogre::Singleton<OgreFramework>,OIS::KeyListener,OIS::MouseListener{
public:
    OgreFramework();
    ~OgreFramework();

    bool …
Run Code Online (Sandbox Code Playgroud)

c++ visual-c++

68
推荐指数
3
解决办法
6万
查看次数

如何停止IntelliSense PCH警告?

我的一些头文件没有包含,所以我在Visual Studio 2010中收到此消息:

IntelliSense: PCH warning: cannot find a suitable header stop location.  An intellisense PCH file was not generated.
Run Code Online (Sandbox Code Playgroud)

如果我添加一个标头,例如:

#include <iostream>
Run Code Online (Sandbox Code Playgroud)

它消失了.如何在不添加(可能未使用)include>的情况下停止显示此错误

c++ intellisense header include visual-studio-2010

17
推荐指数
2
解决办法
3万
查看次数