Total Noob here I’m working on getting structs to work. First I don’t have any idea what caused this error.
UStructures.cpp(11): [C4430] missing type specifier - int assumed. Note: C++ does not support default-int
My CPP file
// Fill out your copyright notice in the Description page of Project Settings.
#include "UStructures.h"
struct FWordStruct;
USTRUCT(BlueprintType)
struct FProfileStruct
{
GENERATED_BODY()
TArray<FWordStruct> WordArray;
TArray<FWordStruct> TempWordArray;
FString Player;
};
USTRUCT(BlueprintType)
struct FWordStruct
{
GENERATED_BODY()
};
int main()
{
return 0;
}
My header
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
And am I adding an array of structs correctly?
I’m trying to have my structs be using in blueprints
And before the compile error is file disappeared from the file explorer in the editor