Whenever I compile the code, these two errors appear:
LNK2001 unresolved external symbol “public: __cdecl UKeybindingUMG::UKeybindingUMG(class FObjectInitializer const &)” (??0UKeybindingUMG@@QEAA@AEBVFObjectInitializer@@@Z)
LNK2019 unresolved external symbol “public: __cdecl UKeybindingUMG::UKeybindingUMG(class FObjectInitializer const &)” (??0UKeybindingUMG@@QEAA@AEBVFObjectInitializer@@@Z) referenced in function “public: void __cdecl UKeybindingUMG::`default constructor closure’(void)” (??_FUKeybindingUMG@@QEAAXXZ)
KeybindingUMG.cpp:
// Fill out your copyright notice in the Description page of Project Settings.
#include "KeybindingUMG.h"
#include "Project.h"
KeybindingUMG.h:
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "KeybindingUMG.generated.h"
/**
*
*/
UCLASS()
class PROJECT_API UKeybindingUMG: public UUserWidget
{
GENERATED_UCLASS_BODY()
};
I can’t find anything contextually wrong from this. It would be great if anyone can tell me what have I done wrong.