This error is annoying, Im kinda new to this design please help:
error C2061: syntax error : identifier 'GameObject'
InputComponent::Update' : function does not take 1 arguments
error C2259: 'PlayerInputComponent' : cannot instantiate abstract class
1> due to following members:
1> 'void InputComponent::Update(void)' : is abstract
InputComponent:
1 2 3 4 5 6 7
#pragma once
#include "GameObject.h"
class InputComponent
{
public:
virtualvoid Update(GameObject &obj) = 0;
};
PlayerInputComponent:
1 2 3 4 5 6 7 8 9 10 11 12
#pragma once
#include "InputComponent.h"
#include "GameObject.h"
class PlayerInputComponent : public InputComponent
{
public:
virtualvoid Update(GameObject &obj)
{
//Check input here..
}
private:
};
I don't immediately see anything wrong in any of that code you've posted. Could there be something wrong in one of the header files included by GameObject.h?
Does this mean that the guy who went to some effort to help in your duplicate thread here http://www.cplusplus.com/forum/beginner/99500/#msg535139 totally wasted his time?
he posted after i posted this i think or maybe as i were writing this.. if you were in my shoes you'd understand lmao, plus i think ill stick to other forums as i cant be waiting hours for a reply..