Crash with c++ sub-folders

Hello,

I have a problem with creating subfolders for c++ code.

I’ve gone through some iterations of folder structure, but I’ve yet to find one that works. (beside the one that has no subfolders)

So, this works:

Gamefolder
    Private
        MyCode.cpp
    Public
        MyCode.h

But these don’t:

Gamefolder
    Subfolder
        Private
            MyCode.cpp
        Public
            MyCode.h

This produces a file or folder not found error in the includes.

(I didn’t test giving the full path in the includes; all examples here work with “#include MyCode.h”)

Gamefolder
    Private
        Subfolder
            MyCode.cpp
    Public
        Subfolder
            MyCode.h

This produces an assertion error:

I wouldn’t want to just dump all the code files in one directory, so the first (working) folder structure is a no go.

I would be grateful if you could give me tips about creating a working (and optimal) folder structure.

It seems you’ve found a bug caused by having a class and a folder at the same level with the same name (I assume Orbis.h contains a class called UOrbis or AOrbis) - try renaming either the class or the folder for now.

Thank you, It does indeed seem like it’s a bug, when I renamed the file, it compiled and ran without errors.

Yep, definitely a bug. I’ve fixed it for 4.13.