Error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Samathan
Thu, 12 Aug 2021 21:51:07 +0000
Editor Scripting

Edit: This turned out to be a problem caused by Unreal not including the .generated file when creating the class. I added it in manually and it works fine.

I’m trying to define a ustruct in C++ with this code:

USTRUCT(BlueprintType)
struct FBoardCoordinate
{
	GENERATED_USTRUCT_BODY()

public:

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	int32 Row;

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	FString Column;
};

But I keep getting this error:

error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Does anyone know what the problem is?

Thanks in advance!

4 posts - 3 participants