I already know what this error means and what is causing it. But I need a way to around actually. I need an object to pass in the constructors of other classes, but I need to define the object in its class.
Code what gives the error:
#pragma once
#include "Smash.h"
#include "Window.h"
#include "Input.h"
#include "Game.h"
#include "Render.h"
class Smash {
public:
Smash smash; ///I NEED THE smash OBJECT TO PASS IN THE OTHER CLASSES, ERROR APPEARS HERE.
Game game(smash);
Window win(smash);
Render render(smash);
Input input(smash);
};
The smash object is causing the error because it is in the header class itself.
I just need a way to go around or something.
Sorry for bad English, thanks in advance.