[4.15 & 4.16]Compil error with new plugin

Hi,

When i create a new Third Party Plugin, and when i add a New C++ class inside (ActorComponent or BlueprintFunctionLibrary) i have every time the same error with a new project :

2>EXEC : error : The first include statement in source file ‘C:\Project\VehiculeDBox\Plugins\DBox\Intermediate\Build\Win64\UE4Editor\Inc\DBox\DBox.generated.cpp’ is trying to include ‘GeneratedCppIncludes.h’ as the precompiled header, but that file could not be located in any of the module’s include search paths.

If someone has an idea?

edit : Same issu with 4.16

I have the same issue. Anyone know why this happens and how to fix it?

same issue…

Anyone found a work around for this error.

I solved my issue.

I included generated.h in my HeaderFile and included the following code in my .Build.cs

PublicDependencyModuleNames.AddRange(
  new string[]
  {
    "Core",
  }
);


PrivateDependencyModuleNames.AddRange(
  new string[]
  {
    "CoreUObject",
    "Engine",
  }
);
1 Like