As far as I could find out, C++ is not recognising my Unit class. I am sure I included it correctly in my GameMaster.h . I tried forward declaring but it had no effect. It seems to be linked correctly with makefile. Where could the error lie?
GameMaster.cpp:21:34: error: expected primary-expression before ‘*’ token
if (combatHandler.isEnemies(Unit* attackingUnit, Unit* defendingUnit))
code:
if (combatHandler.isEnemies(Unit* attackingUnit, Unit* defendingUnit))