OtherCompilationError(2)

I’ve just started learning to use Unreal 4. I have some experience in Unity, and a fair amount in C++. I just tried to set up some math functions to be called from a blueprint for a material I’m testing, and I’m getting an error when trying to compile the header file:

#pragma once

UCLASS()
class PLAYSPACE_API UMathExtension :
	public UBlueprintFunctionLibrary
{
public:
	GENERATED_UCLASS_BODY()

	UFUNCTION(BlueprintPure, Category = "Math")
	static float FSmoothStep(float a, float b, float x);

	UFUNCTION(BlueprintPure, Category = "Math")
	static FVector VSmoothStep(FVector a, FVector b, FVector x);
};

The only error I get is the OtherCompilationError(2), and an intellisense warning saying that it expected a ‘)’ on the line with GENERATED_UCLASS_BODY()

Thoughts?

For me it’s working with GENERATED_BODY() without “UCLASS”

Use GENERATED_BODY() instead of GENERATED_UCLASS_BODY();

More info on the difference

Hope that helps!