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. 

Types suddenly unknown after adding new classes


After our project gets bigger, the following problem suddenly occurred after a new header with a new class was added:

Suddenly the compiler does not recognize some types in random cpp-files any more.

We are compiling with the binary-4.11 edition.

What I am asking myself is, why it worked in the first place, because the type of the object was never part of the precompiled header and the objects-header was never included in the cpp itself.

I can test this if I add "bFasterWithoutUnity = true;" to the build. In this case, the compiler behaves like expected because then he starts to complaining about all missing types.

So, my question is, why the build-tool would know these types if I compile with PCHs enabled, although they are not part of the PCH.

Could you perhaps give some insights into what UHT/UBT is doing to make types available globally in cpps if you are using PCHs?

Like I said, it should not have been compiled in the first place, but it seems that UBT is more tolerant with PCHs enabled.

Unfortunately a repro is very difficult because it happened at a time where the complexity was already too big.

But, we could send you our project-sources with a known problem-case, if that would help.


Product Version: UE 4.11
more ▼

asked Jul 25 '16 at 03:53 PM in C++ Programming

avatar image

201 9 13 24

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

0 answers: sort voted first
Be the first one to answer this question
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