x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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:

1.

 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")

2.

 Gamefolder
     Private
         Subfolder
             MyCode.cpp
     Public
         Subfolder
             MyCode.h

This produces an assertion error: alt text

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.

Product Version: UE 4.12
Tags:
more ▼

asked Jun 20 '16 at 08:21 AM in Using UE4

avatar image

Anvolne
10 1 3 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Jun 20 '16 at 01:25 PM

avatar image

Jamie Dale STAFF
7.5k 176 66 304

avatar image Anvolne Jun 20 '16 at 02:40 PM

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

avatar image Jamie Dale STAFF Jul 05 '16 at 01:44 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question