# How to link in windows .lib?

**URL:** <https://forums.unrealengine.com/t/how-to-link-in-windows-lib/20274>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [February 4, 2015, 4:15am UTC](https://forums.unrealengine.com/t/how-to-link-in-windows-lib/20274 "2015-02-04T04:15:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fredrum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fredrum](https://forums.unrealengine.com/u/Fredrum)\
**Post date:** [February 4, 2015, 4:15am UTC](https://forums.unrealengine.com/t/how-to-link-in-windows-lib/20274/1 "2015-02-04T04:15:57Z")

</div>

Hi All,

I want to link in WS2\_32.Lib to do some UDP networking stuff.  
Is there somewhere that explains how to do that?

I saw this wiki page but it seems more for those who are modding the engine code?

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

I added the winsock2.h and that compiles fine without any actual code added.  
But I tried to add the lib and its x64/x86 paths to the VS config but it won’t build/compile as soon as I add any winsock code.

Is there a manual somewhere on this?

Cheers

---

<div class="post-metadata">

**Author:** ![Fredrum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fredrum](https://forums.unrealengine.com/u/Fredrum)\
**Post date:** [February 8, 2015, 4:17am UTC](https://forums.unrealengine.com/t/how-to-link-in-windows-lib/20274/2 "2015-02-08T04:17:58Z")

</div>

Sorry to bump but would be very happy to hear how to do this?  
I tried doing the stuff in my link and it runs through without complaint but the still wont let me program using winsock bits.

I started testing ue4 sockets but am a bit put off by reading in forum posts that it is not well documented. Is this still a good alternative for low latency udp stuff?

Cheers, F

---

<div class="post-metadata">

**Author:** ![Zoro123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zoro123](https://forums.unrealengine.com/u/Zoro123)\
**Post date:** [July 27, 2015, 9:35pm UTC](https://forums.unrealengine.com/t/how-to-link-in-windows-lib/20274/3 "2015-07-27T21:35:43Z")

</div>

Hello Fredrum,

I am also fighting with the same issue.

In my situation, all code compiles and run properly under simulation mode.

When I run under standalone ode, I get some “Accessed none” error messages on class which is using sockets.

Did you resolve your issue ?
