since 4.15, we are not able to build linux dedicated server on windows. Does someones succeed in getting a linux dedicated server build in shipping mode on windows platform?
We found multiple topics on the same errors with no solution.
So first I would like to point to Epicâs IWYU Reference Guide, but then I would like to ask for a bit of clarity on it.
Under âWhat it Means to IWYUâ it states:
"All header files include their required dependencies."
For those of you experienced with IWYU, what does it mean by this? In practice currently I am forward declaring most of my dependencies. So the top of my Actorâs header looks like this:
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "MyActor.generated.h"
class UTextRenderComponent;
class USkeletalMeshComponent;
UCLASS()
class AMyActor: public AActor
But the way I am reading this I should be including the respective headers like so:
#include "CoreMinimal.h"
#include "Components/TextRenderComponent.h"
#include "Components/StaticMeshComponent.h"
#include "GameFramework/Actor.h"
#include "MyActor.generated.h"
UCLASS()
class AMyActor: public AActor
Is this the way it should be? Wouldnât this cause issues with including what you donât use in any class that included MyActor.h?
Forward declarations are perfectly fine, you donât have change anything here.
Previously most of the engine classes included huge headers like Engine.h (the bigger one, there are 2 of themâŚ) which includes insane amount of headers, but given class utilized only like 1 or 2 headers. It was slowing down compilation of the entire engine.
And right now engine classes include only headers they actually use. Youâre already doing that