# I set-up Raknet but get build error

**URL:** <https://forums.unrealengine.com/t/i-set-up-raknet-but-get-build-error/309132>\
**Category:** C++\
**Tags:** build-error, unreal-engine, UE4, CPP, question\
**Created:** [March 4, 2015, 12:42pm UTC](https://forums.unrealengine.com/t/i-set-up-raknet-but-get-build-error/309132 "2015-03-04T12:42:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AhmetFaruk\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AhmetFaruk\_1](https://forums.unrealengine.com/u/AhmetFaruk_1)\
**Post date:** [March 4, 2015, 12:42pm UTC](https://forums.unrealengine.com/t/i-set-up-raknet-but-get-build-error/309132/1 "2015-03-04T12:42:06Z")

</div>

> **[Is it possible to compile RakNet using UE4?](https://forums.unrealengine.com/questions/158112/is-it-possible-to-compile-raknet-using-ue4.html)**
>
> Can anyone help me how to add RakNet (GitHub - facebookarchive/RakNet: RakNet is a cross platform, open source, C++ networking engine for game programmers.), to UE4/Source/ThirdParty and to make RakNet.Build.cs? Do i need precompiled RakNet/Libs?...

I did it. But I have got this error. Could you help me ? Thanks a lot…

 ![32195-mmor_error_2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/6/7163668aadd245e4082aef2a27b2acb4f3d1d992.jpeg)

---

<div class="post-metadata">

**Author:** ![AhmetFaruk\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AhmetFaruk\_1](https://forums.unrealengine.com/u/AhmetFaruk_1)\
**Post date:** [March 4, 2015, 2:01pm UTC](https://forums.unrealengine.com/t/i-set-up-raknet-but-get-build-error/309132/2 "2015-03-04T14:01:12Z")

</div>

I solved it with

#include “AllowWindowsPlatformTypes.h”  
#include “HideWindowsPlatformTypes.h”

but now I got typemismatch error :

Error 1 error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MT\_StaticRelease’ doesn’t match value ‘MD\_DynamicRelease’ in MMO\_Template.h.obj E:\MMO-Template\MMO\_Template\Intermediate\ProjectFiles\RakNet\_vs2008\_libstatic\_release\_x64.lib(RakNetTypes.obj) MMO\_Template
