I'm having trouble with including files. I tried to include files after #ifndef #define. but it still throws me errors when i try to compile.
This is the setup:
Bullet.h Class
#include "Entity.h"#include "Turret.h"#ifndef Bullet_H#define Bullet_Hclass Bullet : public Entity {private: private stuff... Turret *ownerpublic: method definitions...};#endifNow the Turret.h Class
#include "Entity.h"#include "Bullet.h"#ifndef Tower_H#define Tower_Hclass Tower : public Entity {private:public: Bullet *shoot();};#endifThis kind of setup throws a "fatal error C1014: too many include files : depth = 1024"
If I move the includes inside #ifndef than i get all kinds of syntax errors.
Thank you in advance.
Adrian