# Clang Error LNK2019 From FPlatformTime::Seconds ( )

**URL:** <https://forums.unrealengine.com/t/clang-error-lnk2019-from-fplatformtime-seconds/2700571>\
**Category:** Programming & Scripting\
**Tags:** clang, compiler-error, unreal-engine, compiler, question, CPP\
**Created:** [February 18, 2026, 1:07pm UTC](https://forums.unrealengine.com/t/clang-error-lnk2019-from-fplatformtime-seconds/2700571 "2026-02-18T13:07:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![loh0123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@loh0123](https://forums.unrealengine.com/u/loh0123)\
**Post date:** [February 18, 2026, 1:07pm UTC](https://forums.unrealengine.com/t/clang-error-lnk2019-from-fplatformtime-seconds/2700571/1 "2026-02-18T13:07:35Z")

</div>

I try to switch to clang compiler on UE 5.7. It compile on first time but after add one line of `FPlatformTime::Seconds ( )` it get compile error

I follow [Use Clang to Build Microsoft Platforms in Unreal Engine | Unreal Engine 5.7 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/use-clang-to-build-microsoft-platforms-in-unreal-engine) and install clang by using visual studio installer.

Clang version is 19.1.5

This is my BuildConfiguration

```xml
<?xml version="1.0" encoding="utf-8" ?>

<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">

    <WindowsPlatform>

        <Compiler>Clang</Compiler>

        <bAllowClangLinker>False</bAllowClangLinker>

    </WindowsPlatform>

</Configuration>

```

Code that cause this error

```cpp
void UTest_BPLibrary::TestBPLibrary ( )
{
    const double PTSecond = FPlatformTime::Seconds ( );
}

```

Can some one explain how can i fix this

Log

```auto
CONSOLE: Use build tool: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\MSBuild.exe
: : null
8:57:13 PM Building D:\Unreal Engine\Project File\TestCoding\Intermediate\ProjectFiles\TestCoding.vcxproj
“D:\Epic Game\UE_5.7\Engine\Build\BatchFiles\Build.bat” TestCodingEditor Win64 Development -Project=“D:\Unreal Engine\Project File\TestCoding\TestCoding.uproject” -WaitMutex -FromMsBuild -architecture=x64
Using bundled DotNet SDK version: 8.0.412 win-x64
Running UnrealBuildTool: dotnet “....\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” TestCodingEditor Win64 Development -Project=“D:\Unreal Engine\Project File\TestCoding\TestCoding.uproject” -WaitMutex -FromMsBuild -architecture=x64
Log file: C:\Users\Loh0123\AppData\Local\UnrealBuildTool\Log.txt
Building TestCodingEditor…
Using Clang 19.1.5 compiler (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\x64) with Visual Studio 2022 14.44.35222 runtime (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Determining max actions to execute in parallel (8 physical cores, 16 logical cores)
Executing up to 8 processes, one per physical core
Using Unreal Build Accelerator local executor to run 4 action(s)
Storage capacity 40Gb
---- Starting trace: 260218_205714 ----
UbaSessionServer - Disable remote execution (remote sessions will finish current processes)
[1/4] Compile [x64] Test_BPLibrary.cpp
[2/4] Link [x64] UnrealEditor-TestCoding.lib
[3/4] Link [x64] UnrealEditor-TestCoding.dll
0>Test_BPLibrary.cpp.obj: Error LNK2019 : unresolved external symbol “__declspec(dllimport) int__cdecl Windows::QueryPerformanceCounter(union _LARGE_INTEGER *)” (_imp?QueryPerformanceCounter@Windows@@YAHPEAT_LARGE_INTEGER@@
) referenced in function “private: void __cdecl UTest_BPLibrary::TestBPLibrary(void)” (?TestBPLibrary@UTest_BPLibrary@@AEAAXXZ)
0>UnrealEditor-TestCoding.dll: Error LNK1120 : 1 unresolved externals
Trace written to file C:/Users/Loh0123/AppData/Local/UnrealBuildTool/Log.uba with size 4.0kb
Total time in Unreal Build Accelerator local executor: 5.32 seconds

Result: Failed (OtherCompilationError)
Total execution time: 5.92 seconds
0>Microsoft.MakeFile.Targets(44,5): Error MSB3073 : The command ““D:\Epic Game\UE_5.7\Engine\Build\BatchFiles\Build.bat” TestCodingEditor Win64 Development -Project=“D:\Unreal Engine\Project File\TestCoding\TestCoding.uproject” -WaitMutex -FromMsBuild -architecture=x64” exited with code 6.

```
