TArray not working!

Hey all, I’m getting the following errors:

1> ‘__faststorefence’: is not a member of ‘FWindowsPlatformMisc’

2> ‘_InterlockedCompareExchange’: none of the 4 overloads could convert all the argument types

3> ‘_InterlockedCompareExchange’: is not a member of ‘FWindowsPlatformAtomics’

As well as the following warnings:

1> ‘_APISET_SECURITYBASE_VER’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’ HospitalPatientRoom C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h

2> ‘_APISET_RTLSUPPORT_VER’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’ HospitalPatientRoom C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h

3> ‘_APISET_INTERLOCKED_VER’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’ HospitalPatientRoom C:\Program Files (x86)\Windows Kits\8.1\include\um\interlockedapi.h

Here’s my code:

#pragma once
    
#include <Object.h>
#include <Array.h>
#include <UObject/ObjectMacros.h>
#include <UObject/ScriptMacros.h>
#include "FFunctionStructs.generated.h"


USTRUCT(BlueprintType)
struct FMessageUX
{
	GENERATED_USTRUCT_BODY()
public:
	UPROPERTY(BlueprintReadWrite)
		FString Message;
};

USTRUCT(BlueprintType)
struct FMessageUXGroup
{
	GENERATED_USTRUCT_BODY()
public:
	UPROPERTY(BlueprintReadWrite)
		TArray<FMessageUX> Messages;
	UPROPERTY(BlueprintReadWrite)
		TArray<int32> Intervals;
};

If you comment out the line 24 to line 27. Does it compile just fine?

I forgot to add this file to the PCH file. After adding it, it now works.