I know, I know, this seems like an uber beginners question and most likely is. I have had this error several times and always figured it out myself, but this time it won't. GetUserData() returns a void*
#ifndef BLABLA_H
#define BLABLA_H
#include "GameEntity.h"
//class declaration left out for simplicity reasons
if (static_cast<GameEntity*>(point->shape1->GetUserData())->m_name == "player")
{
}
#endif;
error C2061: syntax error : identifier 'GameEntity'
error C2143: syntax error : missing ';' before '{'
Error occurs because of the cast to GameEntity, don't see why though. This should be perfectly O.K
Any help is appreciated, I'm stuck at this for way too long already!