# UE 5.8 C++ project named “Physics” fails to compile because LogPhysics is already defined by the engine 

**URL:** <https://forums.unrealengine.com/t/ue-5-8-c-project-named-physics-fails-to-compile-because-logphysics-is-already-defined-by-the-engine/2731074>\
**Category:** Programming & Scripting\
**Tags:** bug, unreal-engine, compile-error\
**Created:** [June 24, 2026, 2:30pm UTC](https://forums.unrealengine.com/t/ue-5-8-c-project-named-physics-fails-to-compile-because-logphysics-is-already-defined-by-the-engine/2731074 "2026-06-24T14:30:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilker\_aktug](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilker\_aktug](https://forums.unrealengine.com/u/ilker_aktug)\
**Post date:** [June 24, 2026, 2:30pm UTC](https://forums.unrealengine.com/t/ue-5-8-c-project-named-physics-fails-to-compile-because-logphysics-is-already-defined-by-the-engine/2731074/1 "2026-06-24T14:30:28Z")

</div>

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:

```auto
DECLARE_LOG_CATEGORY_EXTERN(LogPhysics, Log, All);

```

Build output:

```cpp
[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.
