error C2504: base class undefined

后端 未结 3 1527
陌清茗
陌清茗 2021-01-17 16:16

I have encountered this error many times before and eventually found solutions, but this one has me stumped. I have a class \'Mob\' that is inherited by class \'Player\'.

3条回答
  •  情深已故
    2021-01-17 16:40

    I know this is not the best way to deal with that problem, but it work for me at least. you can put all your other includes in the cpp file:

    #include "OmiGame/OmiGame.h"
    #include "PlayState.h"
    #include "Mob.h"
    #include "resources.h"
    

提交回复
热议问题