I’m just trying to create a blank plugin in UE5 and I get the following error:
…\Epic Games\UE_5.2\Engine\Plugins\Runtime\ReplicationGraph\Source\Public\ReplicationGraphTypes.h(596): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Haven’t had much time to look at it but I’ve started looking at it again today. When I look up the problem with the GENERATED_BODY(), I see solutions that say check that the header is included. “ReplicationGraphTypes.generated.h” is included but I see #define FID_Engine_Plugins_Runtime_ReplicationGraph_Source_Public_ReplicationGraphTypes_h_596_GENERATED_BODY is defined there but no GENERATED_BODY().
I came up against this today and spent a very long time debugging the UnrealBuildTool to try and figure it out. Eventually I found the cause…it was frustratingly simple in the end! (In my case anyway)
In my project’s Target.cs file, I was still using the include order from 5.1.
So to fix it I just needed to change this:
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;
to this:
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_2;
or if you prefer not to set a specific version use:
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
Do this in each of your project’s Target.cs files. You may have more than one depending on your project setup.