Get doors open by a key as grabbing things

I’m trying to make the door open when I press a key as we did in the grabbing session but I get this error
OpenDoor.cpp.obj : error LNK2019: unresolved external symbol “public: void __cdecl UOpenDoor::Test(void)” (?Test@UOpenDoor@@QEAAXXZ) referenced in function “public: void __cdecl UOpenDoor::GetKeyToOpenDoor(void)” (?GetKeyToOpenDoor@UOpenDoor@@QEAAXXZ)

OpenDoor.cpp.obj : error LNK2019: unresolved external symbol “public: void __cdecl UOpenDoor::Test(void)” (?Test@UOpenDoor@@QEAAXXZ) referenced in function “public: void __cdecl UOpenDoor::GetKeyToOpenDoor(void)” (?GetKeyToOpenDoor@UOpenDoor@@QEAAXXZ)
I have been searching for a long time but I got nothing
May someone help me with the answer and maybe give me the reason for this error

the code links

Breaking this error down.

OpenDoor.cpp.obj

In the compiled object file for OpenDoor.cpp

error LNK2019: unresolved external symbol

Linker error, use of function without a definition.

public: void __cdecl UOpenDoor::Test(void)” (?Test@UOpenDoor@@QEAAXXZ)

public: void UOpenDoor::Test()

referenced in function “public: void __cdecl UOpenDoor::GetKeyToOpenDoor(void)”

Which is used in public: void UOpenDoor::GetKeyToOpenDoor()


So in a nutshell, you didn’t define void UOpenDoor::Test()

1 Like

Thank you so much Dan that really helped me

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms