大家,我是 C++ 的新手,当我尝试构建一个项目时,以下代码中发生错误:
#ifndef GAMEPLAYEREX_H_
#define GAMEPLAYEREX_H_
#include "GamePlayer.h"
class GamePlayerEx : virtual public GamePlayer
{
public:
GamePlayerEx(int = 0);
virtual ~GamePlayerEx(void);
......
错误信息是:
In file included from ../GameEngine/GameMoudle/GamePlayerEx.cpp:8:0:
../GameEngine/GameMoudle/GamePlayerEx.h:11:24: fatal error: GamePlayer.h: No such file or directory
compilation terminated.
我的项目目录如下图,我不想使用#include "../GamePlayer.h"
.
那么,有人知道如何在项目中配置并让它工作吗?谢谢!