.cpp file excluded from unity file for no apparent reason

In this Unreal project, building and everything was perfect until today. After some trivial changes to this pair of .h and .cpp files, I cannot by any means compile and build.

What is happening is described on log as:

0>[Adaptive Build] Excluded from ProjectName unity file: FileName.cpp

Then as the build tries to compile:

0>FileName.gen.cpp(32470): Error C2607 : static assertion failed

There is no error on the file, nothing is being detected or pointed wrong. Where do I go from here? I want to discover why this file is now all of a sudden being excluded from unity file. I have no idea how.

0
1 comment

Hello Gustavo Judice,

Regrettably, it is difficult to say what might be causing this issue without access to the affected project, but this issue could be caused by change in the build environment, for example, a Visual Studio/Build Tools update. If this is the case, please consider using recommended versions of VS/Build Tools versions (see Version Compatibility).

0

Please sign in to leave a comment.