C++ code not compiling with int UPROPERTY

c++ code not compiling with int UPROPERTY

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = World)
float Moving;

compiles fine where as

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = World)
int Moving;

Does not compile

Error code OtherCompilationError (5) Rocket G:\Game\Rocket\Intermediate\ProjectFiles\Error 1

Error MSB3073 The command ““C:\Program Files\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat” RocketEditor Win64 Development “G:\Game\Rocket\Rocket.uproject” -rocket -waitmutex -2015” exited with code -1. Rocket C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 37

Even int8, int16 still will not compile however int32 will compile!

Int is a C++ type which means different things in different machines. To use UPROPERTY you need to use Unreal Engine’s defined types.

Take a look at this url

You can pick from those.