Error LNK2019

Hi!

I try to copy the ACharacter class to change the walking movement (for walk on wall).
But I have this error, that I don’t unterstand,
This line with error:
RootMotionMontageInstance->SimulateAdvance(DeltaTime, RootMotionTrackPosition, RootMotionMovement);

And I’m worried because the other line work perfectly :
RootMotionMontageInstance->SetPosition(RootMotionTrackPosition);

And I have correctly insert : #include “Animation/AnimMontage.h”

Oh and I try with 2 versions 4.11 and 4.12.

error LNK2019: unresolved external symbol "public: bool __cdecl FAnimMontageInstance::SimulateAdvance(float,float &,struct FRootMotionMovementParams &)const " (?SimulateAdvance@FAnimMontageInstance@@QEBA_NMAEAMAEAUFRootMotionMovementParams@@@Z) referenced in function “public: virtual void __cdecl FSumocratsSavedMove_Character::PrepMoveFor(class ASumocratsCharacter *)” (?PrepMoveFor@FSumocratsSavedMove_Character@@UEAAXPEAVASumocratsCharacter@@@Z)

“LNK2019: unresolved external symbol” errors are typically easy to solve, but difficult to find.

We’ll need more of your header and/or CPP file code to better assist.

Some things that have gotten me with these are mostly syntactical, such as missing a semicolon or missing parenthesis/brackets somewhere.

It can also be that you’re referencing an include or class, but didn’t include the proper module in your build.cs file.

How usually this trouble apear if u try use not allowed symbol. I’m thinking is trouble in parametrs, look in type parametrs or use pointers. And next, if corect code go after bad line, linker will stop on the first line.

Thanks for your answers.

TX.AlphaMale
It’s a complete copy/paste of the class FSavedMove_Character
Yes it can be a missing module, but i don’t know witch one, because how i say when i comment this line, the code compile perfectly and i use an other method of the class FAnimMontageInstance.

Kelt
Yes i already check the type parameters, all look like good. And i don’t really want to modify the code of FAnimMontageInstance class.

I have same issue. I think you cannot use it without modifying source code. because AnimMontage implementation is located in private folder.

Engine\Source\Runtime\Engine\Private\Animation\AnimMontage.cpp