# \[4.7, 4.6.1\] Problems including headers to dependency build.cs

**URL:** <https://forums.unrealengine.com/t/4-7-4-6-1-problems-including-headers-to-dependency-build-cs/308521>\
**Category:** Multiplayer & Networking\
**Tags:** bugs, Networking, sockets, unreal-engine, CPP, question\
**Created:** [February 28, 2015, 5:23pm UTC](https://forums.unrealengine.com/t/4-7-4-6-1-problems-including-headers-to-dependency-build-cs/308521 "2015-02-28T17:23:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![3HMonkey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3HMonkey](https://forums.unrealengine.com/u/3HMonkey)\
**Post date:** [February 28, 2015, 5:23pm UTC](https://forums.unrealengine.com/t/4-7-4-6-1-problems-including-headers-to-dependency-build-cs/308521/1 "2015-02-28T17:23:18Z")

</div>

Hello, I am unable to include “Networking” and / “Sockets” to the dependency module names.

I did this on a fresh third person C++ code project:

```
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "Networking", "Sockets" });

```

after I did this I rebuild the system by using VS that I would be able to use:

```
 #include "Networking.h"
    #include "Sockets.h"

```

in my code.

I am only able to use the classes like:

```
 #include "Runtime/Sockets/Public/Sockets.h"
  #include "Runtime/Networking/Public/Networking.h"

```

for example.

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [March 4, 2015, 9:41am UTC](https://forums.unrealengine.com/t/4-7-4-6-1-problems-including-headers-to-dependency-build-cs/308521/2 "2015-03-04T09:41:51Z")

</div>

Did you already check if the header’s directory is included in the project settings include directories?

If you are using VS2013, maybe also try to check VC++ directories in your project’s propierties and in the source directories check “Inherit from parent or project defaults”.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [March 5, 2015, 8:50pm UTC](https://forums.unrealengine.com/t/4-7-4-6-1-problems-including-headers-to-dependency-build-cs/308521/3 "2015-03-05T20:50:34Z")

</div>

Hi 3HMonkey,

I tried reproducing the issue that you described in 4.6.1, 4.7.0, and 4.7.2. In all three of my test projects I was able to build the project successfully in Visual Studio. Could you provide some additional information about this issue?

- Are you using the binary version of the Editor installed by the Launcher, or did you build the Engine from source code?
- What file(s) are you adding your `#include` lines to?

---

<div class="post-metadata">

**Author:** ![3HMonkey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3HMonkey](https://forums.unrealengine.com/u/3HMonkey)\
**Post date:** [March 5, 2015, 10:58pm UTC](https://forums.unrealengine.com/t/4-7-4-6-1-problems-including-headers-to-dependency-build-cs/308521/4 "2015-03-05T22:58:27Z")

</div>

Well, I found the solution I didn’t know. I had to regenerate the VS project’s files over the windows explorer by rightclicking the \*.uproject file.

---

<div class="post-metadata">

**Author:** ![paranoio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@paranoio](https://forums.unrealengine.com/u/paranoio)\
**Post date:** [December 18, 2015, 7:23am UTC](https://forums.unrealengine.com/t/4-7-4-6-1-problems-including-headers-to-dependency-build-cs/308521/5 "2015-12-18T07:23:10Z")

</div>

adding some notes i found myself :

- use Engine.h instead of EngineMinimal.h
- i have VS2013 and then updated to engine 4.10 and had to download VS2015 but when opening a uproject it would be opening with VS2013 , i had to change defaul app for opening solutions
- keep UE editor open before “regenerate the VS project’s files” otherwise uproject can become corrupt and wont let open the project , i think keeping UE editor open, keeps a lock on the project/BInaries/Win64/project.dll that the editor uses so its not rebuilded hence not corrupted

after doing this steps i got intellisense happy with the include “Networking.h” and project builds  
im new to UE4 so its posible im wrong on some points so please comment
