I created a new C++ project in Unreal Engine 5.8 and named the project Physics.
The project fails to compile right after creation because the generated project header defines a LogPhysics log category:
DECLARE_LOG_CATEGORY_EXTERN(LogPhysics, Log, All);
Build output:
[1/7] Compile [x64] Physics.cpp
0>Physics.h(8,1): Error C2011 : 'FLogCategoryLogPhysics': 'struct' type redefinition
DECLARE_LOG_CATEGORY_EXTERN(LogPhysics, Log, All);
^
C:\Program Files\Epic Games\UE_5.8\Engine\Source\Runtime\Engine\Public\EngineLogs.h(13,12): note: see declaration of 'FLogCategoryLogPhysics'
ENGINE_API DECLARE_LOG_CATEGORY_EXTERN(LogPhysics, Warning, All);
It looks like the project name generates code that conflicts with an existing engine log category.
I think it might be worth showing a warning during project creation when the generated project code would conflict with existing engine symbols. It took me a while to figure out what was actually going on, so a simple warning here would be helpful.