Pointer to incomplete class type is not allowed

Hello…

why your forward declaration is inside the class?

#include "Core.h"
#include "GameFramework/Actor.h"
#include "pickup.generated.h"
 
UCLASS()
class HORDE_API Apickup : public AActor
{
     GENERATED_BODY()
 
         class UBoxComponent;
 
public:    
     // Sets default values for this actor's properties
     Apickup();

That should be outside/before of the class

#include "Core.h"
#include "GameFramework/Actor.h"
#include "pickup.generated.h"

class UBoxComponent;

UCLASS()
class HORDE_API Apickup : public AActor
{
    GENERATED_BODY()

public:    
     // Sets default values for this actor's properties
     Apickup();

PS: this will work only if you follow Atheist advice about includes :wink: