# Declaration is incompatible

**URL:** <https://forums.unrealengine.com/t/declaration-is-incompatible/426635>\
**Category:** Pipeline & Plugins\
**Tags:** error, logging, unreal-engine, Visual-Studio, CPP, question\
**Created:** [June 4, 2018, 9:27am UTC](https://forums.unrealengine.com/t/declaration-is-incompatible/426635 "2018-06-04T09:27:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dazzlesoftware](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dazzlesoftware](https://forums.unrealengine.com/u/dazzlesoftware)\
**Post date:** [June 4, 2018, 9:27am UTC](https://forums.unrealengine.com/t/declaration-is-incompatible/426635/1 "2018-06-04T09:27:39Z")

</div>

Hello I having error with header file that seems to be showing error in visual studio.

The project does compile but the header itself is showing errors that is part of my logger header

Visual Studio is showing the following error.

```
Severity	Code	Description	Project	File	Line	Suppression State
Error (active)	E0147	declaration is incompatible with "FLogCategoryLogTaskManagement LogTaskManagement" (declared at line 24 of "f:\Unreal Engine 4.19\UnrealPlugins\Plugins\TaskManagement\Source\TaskManagement\Private\TaskManagementLog.h")	UnrealPlugins	f:\Unreal Engine 4.19\UnrealPlugins\Plugins\TaskManagement\Source\TaskManagement\Private\TaskManagementLog.h	24	

```

and my TaskManagementLog.h contains the following

```
#pragma once

/*----------------------------------------------------------------------------
	Low level includes.
----------------------------------------------------------------------------*/

#include "CoreMinimal.h"
#include "Logging/LogVerbosity.h"
#include "Logging/LogCategory.h"
#include "Logging/LogMacros.h"

#include "CoreGlobals.h"

/*----------------------------------------------------------------------------
	Includes.
----------------------------------------------------------------------------*/

#include "Logging/LogSuppressionInterface.h"
#include "Logging/LogScopedCategoryAndVerbosityOverride.h"
#include "Logging/LogScopedVerbosityOverride.h"

DECLARE_LOG_CATEGORY_EXTERN(LogTaskManagement, Log, All);

```

Anyone know what I need to include to remove the error from Visual Studio

---

<div class="post-metadata">

**Author:** ![TehnoMag](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TehnoMag](https://forums.unrealengine.com/u/TehnoMag)\
**Post date:** [June 4, 2018, 10:13am UTC](https://forums.unrealengine.com/t/declaration-is-incompatible/426635/2 "2018-06-04T10:13:03Z")

</div>

You must also add DEFINE\_LOG\_CATEGORY(LogCategory) somewhere in you cpp module

---

<div class="post-metadata">

**Author:** ![dazzlesoftware](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dazzlesoftware](https://forums.unrealengine.com/u/dazzlesoftware)\
**Post date:** [June 5, 2018, 12:38am UTC](https://forums.unrealengine.com/t/declaration-is-incompatible/426635/3 "2018-06-05T00:38:10Z")

</div>

I already have that in place just not sure why it an issue. but I will go over the plugin again and see what going on. I post here again if I can figure it out. I using visual studio 2017 as well.

---

<div class="post-metadata">

**Author:** ![TehnoMag](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TehnoMag](https://forums.unrealengine.com/u/TehnoMag)\
**Post date:** [June 5, 2018, 6:58pm UTC](https://forums.unrealengine.com/t/declaration-is-incompatible/426635/4 "2018-06-05T18:58:58Z")

</div>

> **[Unreal-Engine-4-Multi-Map-Plugin/Source/MultiMap at 4.19 ·...](https://github.com/TehnoMag/Unreal-Engine-4-Multi-Map-Plugin/tree/4.19/Source/MultiMap)**
>
> 4.19/Source/MultiMap

check sample here. In my plugin this is work just fine

---

<div class="post-metadata">

**Author:** ![Sina006](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sina006/32/751001_2.png) [@Sina006](https://forums.unrealengine.com/u/Sina006)\
**Post date:** [November 4, 2023, 7:19pm UTC](https://forums.unrealengine.com/t/declaration-is-incompatible/426635/5 "2023-11-04T19:19:41Z")

</div>

I’m still getting this error as well… but my project just compiles fine. Is there anyway to at least make visual studio’s intellisense to ignore the error?
