Original Post
Hello, I have a huge problem, I'm writing a game using SDL and I've made it almost but I got into trouble with using class polymorphisms. The thing is that I am creating state machine and I've seperated my classes in .h files. When I'm trying to use a class like including them in other .h file with a class derivative to a base class and I'm compiling it I get no errors, but when I run it, I get an Send report or Don't send message.
This is a piece of one of the .h files where I want to include CPLayer.h and compile i get the message
#ifndef CMENU_H
#define CMENU_H
#include "CGameState.h"
#include "CPlayer.h"
#include "Globals.h"
#include "Functions.h"
This is a piece of one of the .h files where I want to include CPLayer.h and compile i get the message
#ifndef CMENU_H
#define CMENU_H
#include "CGameState.h"
#include "CPlayer.h"
#include "Globals.h"
#include "Functions.h"