I have a function FireEvent, and I’m trying to make a variant with a similar name for when I want to pass different arguments:
virtual void FireEvent(EMorphemeID ID, AActor* instigator);
virtual void FireEvent_OneFloat(EMorphemeID ID, AActor* instigator, float number);
The first line compiles cleanly, but the second line won’t compile, and it gives me the sort of weird errors that make me suspect a linker problem:
Error Module.project.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl UMorpheme::FireEvent_OneFloat(enum EMorphemeID,class AActor *,float)” (?FireEvent_OneInt@UMorpheme@@UEAAXW4EMorphemeID@@PEAVAActor@@anonymous_user_142fbdd5@Z)
Error project.generated.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl UMorpheme::FireEvent_OneFloat(enum EMorphemeID,class AActor *,float)” (?FireEvent_OneInt@UMorpheme@@UEAAXW4EMorphemeID@@PEAVAActor@@anonymous_user_142fbdd5@Z)
fatal error LNK1120: 1 unresolved externals
So what am I doing wrong here? I’ve been scratching my head over this, and I can’t see where the problem would be.