error C2509: 'Draw' : member function not declared in 'bBone'
This is how I'm defining Draw for bBone
void bBone::Draw(ID2D1SolidColorBrush *Black){
stuff
}
error C2509: 'Draw' : member function not declared in 'bBone'
This is how I'm defining Draw for bBone
void bBone::Draw(ID2D1SolidColorBrush *Black){
stuff
}
class Bone{ public: virtual void Draw( ID2D1SolidColorBrush *Black );};
class bBone : public Bone{ public: void Draw( ID2D1SolidColorBrush *Black );};
void bBone::Draw( ID2D1SolidColorBrush *Black ){}
1>stick.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Bone::Draw(void)" (?Draw@Bone@@UAEXXZ)
class Bone{protected: ID2D1EllipseGeometry *dot; float angle; D2D1_MATRIX_3X2_F matrix; BOOL hit;public: virtual void Draw();};class bBone:public Bone{public: bBone(); void Draw(ID2D1SolidColorBrush *Black);};
void bBone::Draw(ID2D1SolidColorBrush *Black){stuff}bBone::bBone(){stuff}
Quote:Original post by Waterfox
It definitely can find the definition, it's just that error pops up as soon as I define bBone's constructor.
Quote:I'm pretty sure that means the compiler can't find the definition for bone's draw function.
Make sure you define the Draw function for bone.
Quote:public: virtual void __thiscall Bone::Draw(void)