CompilerResultsLog: clang: error: linker command failed with exit code 1 (use -v to see invocation)

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = “Widgets”)
TSubclassOf w_damage;

UUserWidget* damageWidget;

Everytime i use the “UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = “Widgets”)” bit it keeps giving me this error “CompilerResultsLog: clang: error: linker command failed with exit code 1 (use -v to see invocation)”
and im not sure why. i have used this code in my older project and i am using the same version of unreal and that worked, so it’s a bit strange and im not sure if it is a mac problem even though i made the older project on mac aswell.

  1. When using BlueprintReadWrite, property must be public
  2. Template is missing: TSubclassOf<UUserWidget> w_damage;
  3. Use UPROPERTY: Object member ‘damageWidget’ can be garbage collected at any time
  4. If you are using Slate UI: (Public/Private)DependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore", "UMG" });

Aha it was the umg bit. Thank you!