# When I static link (boost) to UE 5, I get LNK2038 error. How can I resolve it?

**URL:** <https://forums.unrealengine.com/t/when-i-static-link-boost-to-ue-5-i-get-lnk2038-error-how-can-i-resolve-it/616445>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, question, CPP\
**Created:** [July 28, 2022, 3:05pm UTC](https://forums.unrealengine.com/t/when-i-static-link-boost-to-ue-5-i-get-lnk2038-error-how-can-i-resolve-it/616445 "2022-07-28T15:05:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santikmaster1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Santikmaster1](https://forums.unrealengine.com/u/Santikmaster1)\
**Post date:** [July 28, 2022, 3:05pm UTC](https://forums.unrealengine.com/t/when-i-static-link-boost-to-ue-5-i-get-lnk2038-error-how-can-i-resolve-it/616445/1 "2022-07-28T15:05:47Z")

</div>

Hello.

I static linked boost library in Build.cs file like this

PublicAdditionalLibraries.Add(“C:/libraries/boost\_1\_67\_0\_b1\_rc2/lib64-msvc-14.1/libboost\_system-vc141-mt-x64-1\_67.lib”);

but I got the message :  
Error LNK2038 mismatch detected for ‘boost\_\_type\_index\_\_abi’: value ‘RTTI is used’ doesn’t match value ‘RTTI is off - typeid() is used only for templates’ in ChildMessager.cpp.obj
