Hi,
I have been struggling with this issue for a few minutes now, and am unable to find a solution.
I am using a widget component attached to what is pretty much the default C++ character class, have it configured in my header and cpp files, and I have the #include file for the widget component.
Here is the compile log error entry:
GameName.gen.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class UClass * __cdecl Z_Construct_UClass_UWidgetComponent_NoRegister(void)" (__imp_?Z_Construct_UClass_UWidgetComponent_NoRegister@@YAPEAVUClass@@XZ) referenced in function "void __cdecl `dynamic initializer for 'public: static struct UE4CodeGen_Private::FObjectPropertyParams const Z_Construct_UClass_AGameNameCharacter_Statics::NewProp_UIWidget''(void)" (??__E?NewProp_UIWidget@Z_Construct_UClass_AGameNameCharacter_Statics@@2UFObjectPropertyParams@UE4CodeGen_Private@@B@@YAXXZ)
Here Is My Header
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, meta=(AllowPrivateAccess = "true"))
class UWidgetComponent* UIWidget;
Here is my CPP
#include "Components/WidgetComponent.h"
// User Interface
UIWidget = CreateDefaultSubobject<UWidgetComponent>(TEXT("User Widget"));
UIWidget->SetupAttachment(FPCamera);
Any help would be greatly appreciated!