# \[UE5.5\] Error using clang on Windows for Console command

**URL:** <https://forums.unrealengine.com/t/ue5-5-error-using-clang-on-windows-for-console-command/2433186>\
**Category:** Programming & Scripting\
**Tags:** clang, console-command, command-line, unreal-engine, question\
**Created:** [March 31, 2025, 11:26pm UTC](https://forums.unrealengine.com/t/ue5-5-error-using-clang-on-windows-for-console-command/2433186 "2025-03-31T23:26:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EsmeraldaQuinter](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EsmeraldaQuinter](https://forums.unrealengine.com/u/EsmeraldaQuinter)\
**Post date:** [March 31, 2025, 11:26pm UTC](https://forums.unrealengine.com/t/ue5-5-error-using-clang-on-windows-for-console-command/2433186/1 "2025-03-31T23:26:18Z")

</div>

Hello!

I’m creating a plugin that provides some cmd commands.  
I registered the command using ` IConsoleManager::Get().RegisterConsoleCommand` and `FConsoleCommandWithArgsDelegate::CreateStatic`.  
It works ok using MSVC compiler, but when using CLANG compiler it triggers some errors such as:

```auto
lld-link : error : undefined symbol: __declspec(dllimport) unsigned long__cdecl Windows::GetCurrentThreadId(void)
undefined symbol: __declspec(dllimport) void__cdecl Windows::EnterCriticalSection(struct _RTL_CRITICAL_SECTION *)

```

How can I address the issue?  
It is invalid to use FConsoleCommandWithArgsDelegate when using clang?
