'#include "../ModuleName.h"': skipped when looking for precompiled header use

#pragma once

    //#include "../RPGCharacter.h" //#include
     "../RPGProjectile.h"
     #include "RPGPowerBase.generated.h"
    
    UCLASS(BlueprintType, Blueprintable)
    class URPGPowerBase : public UObject,public FTickableGameObject 
``{
     	GENERATED_UCLASS_BODY() 
``(rest of the class definition) 
``}

I know what precompiled header means. What don’t know why does it happen while trying to compile new class ?
Am missing something ?

What I did I just created new TPP C++ code project, and started porting over classes from my old project from beta. It worked before and it is honestly first time I see something about pre compiled headers.
What do I miss ?

Did you copy in your original YourGame.h file?

Rama

Hm it seem like I found the cause of an issue

just for experiment I moved files from subfolder the same folder as my RPG.h file, and changed includes to:

#include "RPG.h"

Now it is working as intended (throwing bunch of normal errors).

But then. How do I put files in subfolders for organization and and include header files in them ?

#Answer to Your Question

You must put RPG.h in a folder called Public

You can then put all other files wherever you want in subdirectories

#I have Proven This

I’ve already done this and ran into similar issues to you so I know it works

#For Others

This is for a new UE4 project, where all files start in same base dir

see my answer above

#include “…/Public/RPG.h”’: skipped when looking for precompiled header use
1> Add directive to ‘Public\RPG.h’

Eh. Still that error. You could post your setup ? What do you have in rpg.h file and/or how do you include it in other files ?

Nevermind I overthinked it.

I just need to add #include to file, without specifying, path to it.