- Code: Select all
virtual void CalcView( Vector &eyeOrigin, QAngle &eyeAngles, float &zNear, float &zFar, float &fov );
In c_BaseCombatCharacter.h
I have it referenced where it is supposed to be and I have everything mapped out no errors prior to linkage or anything.
And then it says this:
- Code: Select all
c_weapon_hopwire.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_strider.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_te_flare.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_vort_charge_token.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z) referenced in function "public: class Vector __thiscall Vector::operator+(class Vector const &)const " (??HVector@@QBE?AV0@ABV0@@Z)
c_weapon_crossbow.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_npc_combinegunship.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_npc_manhack.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_npc_puppet.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_npc_rollermine.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_barnacle.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_barney.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_basehelicopter.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_npc_antlionguard.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
basegrenade_shared.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_ai_basenpc.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_basecombatcharacter.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_baseplayer.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall C_BaseCombatCharacter::CalcView(class Vector &,class QAngle &,float &,float &,float &)" (?CalcView@C_BaseCombatCharacter@@UAEXAAVVector@@AAVQAngle@@AAM22@Z)
c_baseplayer.obj : error LNK2001: unresolved external symbol "public: virtual class IRagdoll * __thiscall C_BasePlayer::GetRepresentativeRagdoll(void)const " (?GetRepresentativeRagdoll@C_BasePlayer@@UBEPAVIRagdoll@@XZ)
c_basehlplayer.obj : error LNK2001: unresolved external symbol "public: virtual class IRagdoll * __thiscall C_BasePlayer::GetRepresentativeRagdoll(void)const " (?GetRepresentativeRagdoll@C_BasePlayer@@UBEPAVIRagdoll@@XZ)
ragdoll.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CRagdoll::LookupAttachment(char const *)" (?LookupAttachment@CRagdoll@@UAEHPBD@Z)
ragdoll.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CRagdoll::GetAttachment(int,class Vector &,class QAngle)" (?GetAttachment@CRagdoll@@UAE_NHAAVVector@@VQAngle@@@Z)
This leads me to believe that all these errors, are caused by the variable that I defined not being in use for these codes.
How do I make the defined variable only work with C_BasePlayer.cpp and not have to be referenced in any other code. But if this isn't the problem and there is a different solution to it please enlighten me.
I'm using this tutorial:
https://developer.valvesoftware.com/wiki/First_Person_Ragdolls
And I'm attempting to implement it into my singleplayer mod, if that helps any.