# LNK2001 error in Build when activating log for shipping

**URL:** <https://forums.unrealengine.com/t/lnk2001-error-in-build-when-activating-log-for-shipping/639965>\
**Category:** XR Development\
**Tags:** unreal-engine, packaging-projects, UE4-27, question\
**Created:** [September 2, 2022, 3:53pm UTC](https://forums.unrealengine.com/t/lnk2001-error-in-build-when-activating-log-for-shipping/639965 "2022-09-02T15:53:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dxhunter42](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dxhunter42](https://forums.unrealengine.com/u/dxhunter42)\
**Post date:** [September 2, 2022, 3:53pm UTC](https://forums.unrealengine.com/t/lnk2001-error-in-build-when-activating-log-for-shipping/639965/1 "2022-09-02T15:53:15Z")

</div>

I wanted to build a VR project with logging enabled for a Win64 platform. The problem is that when i included the logging in the target.cs file, i get LNK2001 (external symbol not solved)with some external plugins that has its own log references:

> Blockquote

```auto
UATHelper: Packaging (Windows (64-bit)): Using 'git status' to determine working set for adaptive non-unity build (D:\Projetos\Imersys\imersys_engenharia-vr).
UATHelper: Packaging (Windows (64-bit)): Writing manifest to D:\Projetos\Imersys\imersys_engenharia-vr\Intermediate\Build\Manifest.xml
UATHelper: Packaging (Windows (64-bit)): Building EngenhariaVR...
UATHelper: Packaging (Windows (64-bit)): Using Visual Studio 2022 14.33.31629 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
UATHelper: Packaging (Windows (64-bit)): Building 11 actions with 16 processes...
UATHelper: Packaging (Windows (64-bit)): [1/11] ActorExtension.cpp
UATHelper: Packaging (Windows (64-bit)): [2/11] AxisLockerComponent.cpp
UATHelper: Packaging (Windows (64-bit)): [3/11] VRGameMode.cpp
UATHelper: Packaging (Windows (64-bit)): [4/11] Module.OpenXRExpansionPlugin.cpp
UATHelper: Packaging (Windows (64-bit)): [5/11] Module.AdvancedSessions.cpp
UATHelper: Packaging (Windows (64-bit)): [6/11] Module.VRExpansionPlugin.1_of_4.cpp
UATHelper: Packaging (Windows (64-bit)): [7/11] Module.VRExpansionPlugin.4_of_4.cpp
UATHelper: Packaging (Windows (64-bit)): [8/11] Module.VRExpansionPlugin.3_of_4.cpp
UATHelper: Packaging (Windows (64-bit)): [9/11] Module.VRExpansionPlugin.2_of_4.cpp
UATHelper: Packaging (Windows (64-bit)): [10/11] EngenhariaVR-Win64-Shipping.exe
UATHelper: Packaging (Windows (64-bit)): Criando biblioteca D:\Projetos\Imersys\imersys_engenharia-vr\Binaries\Win64\EngenhariaVR-Win64-Shipping.lib e objeto D:\Projetos\Imersys\imersys_engenharia-vr\Binaries\Win64\EngenhariaVR-Win64-Shipping.exp
UATHelper: Packaging (Windows (64-bit)): Module.VRExpansionPlugin.1_of_4.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogType LogType" (?LogType@@3UFLogCategoryLogType@@A)
UATHelper: Packaging (Windows (64-bit)): Module.VRExpansionPlugin.2_of_4.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogType LogType" (?LogType@@3UFLogCategoryLogType@@A)
UATHelper: Packaging (Windows (64-bit)): Module.VRExpansionPlugin.3_of_4.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogType LogType" (?LogType@@3UFLogCategoryLogType@@A)
UATHelper: Packaging (Windows (64-bit)): Module.OpenXRExpansionPlugin.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogType LogType" (?LogType@@3UFLogCategoryLogType@@A)
UATHelper: Packaging (Windows (64-bit)): Module.VRExpansionPlugin.1_of_4.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogPhysics LogPhysics" (?LogPhysics@@3UFLogCategoryLogPhysics@@A)
UATHelper: Packaging (Windows (64-bit)): Module.VRExpansionPlugin.3_of_4.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogRootMotion LogRootMotion" (?LogRootMotion@@3UFLogCategoryLogRootMotion@@A)
UATHelper: Packaging (Windows (64-bit)): Module.VRExpansionPlugin.3_of_4.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogNetPlayerMovement LogNetPlayerMovement" (?LogNetPlayerMovement@@3UFLogCategoryLogNetPlayerMovement@@A)
UATHelper: Packaging (Windows (64-bit)): Module.VRExpansionPlugin.4_of_4.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogTemp LogTemp" (?LogTemp@@3UFLogCategoryLogTemp@@A)
UATHelper: Packaging (Windows (64-bit)): ActorExtension.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogTemp LogTemp" (?LogTemp@@3UFLogCategoryLogTemp@@A)
UATHelper: Packaging (Windows (64-bit)): AxisLockerComponent.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogTemp LogTemp" (?LogTemp@@3UFLogCategoryLogTemp@@A)
UATHelper: Packaging (Windows (64-bit)): VRGameMode.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogTemp LogTemp" (?LogTemp@@3UFLogCategoryLogTemp@@A)
UATHelper: Packaging (Windows (64-bit)): Module.AdvancedSessions.cpp.obj : error LNK2001: s�mbolo externo n�o resolvido "struct FLogCategoryLogOnlineSession LogOnlineSession" (?LogOnlineSession@@3UFLogCategoryLogOnlineSession@@A)
UATHelper: Packaging (Windows (64-bit)): D:\Projetos\Imersys\imersys_engenharia-vr\Binaries\Win64\EngenhariaVR-Win64-Shipping.exe : fatal error LNK1120: 6 externo n�o resolvidos
UATHelper: Packaging (Windows (64-bit)): Took 29,422532s to run UnrealBuildTool.exe, ExitCode=6

```

My target include these file:

```auto
bOverrideBuildEnvironment = true;
bUseLoggingInShipping = true;

```

I have some clues that this might indicate a linking problem with the plugin’s own log structure, but how do i proced to solve this?

---

<div class="post-metadata">

**Author:** ![jacksonnexhip](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacksonnexhip/32/494650_2.png) [@jacksonnexhip](https://forums.unrealengine.com/u/jacksonnexhip)\
**Post date:** [August 22, 2023, 5:33am UTC](https://forums.unrealengine.com/t/lnk2001-error-in-build-when-activating-log-for-shipping/639965/2 "2023-08-22T05:33:53Z")

</div>

Having the same issue. Anybody got any ideas? Driving me nuts.

Edit: Got it working: [Unknown Package Error UE5.2](https://forums.unrealengine.com/t/unknown-package-error-ue5-2/1268418)

---

<div class="post-metadata">

**Author:** ![ChrisVifzack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ChrisVifzack](https://forums.unrealengine.com/u/ChrisVifzack)\
**Post date:** [September 19, 2024, 4:09pm UTC](https://forums.unrealengine.com/t/lnk2001-error-in-build-when-activating-log-for-shipping/639965/3 "2024-09-19T16:09:46Z")

</div>

Same issue with UE 5.4 … I wonder if this is simply not working with the launcher installed engine?
