# Visual Studio - Additional Include Directories - Can't find "Linker"

**URL:** <https://forums.unrealengine.com/t/visual-studio-additional-include-directories-cant-find-linker/22399>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [March 2, 2015, 7:39pm UTC](https://forums.unrealengine.com/t/visual-studio-additional-include-directories-cant-find-linker/22399 "2015-03-02T19:39:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taurian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taurian](https://forums.unrealengine.com/u/Taurian)\
**Post date:** [March 2, 2015, 7:39pm UTC](https://forums.unrealengine.com/t/visual-studio-additional-include-directories-cant-find-linker/22399/1 "2015-03-02T19:39:36Z")

</div>

Hello, I’m trying to follow these directions below:

> [@](#):
>
> For Windows Photon supports Visual Studio as IDE.
> 
> 1. In C/C++ -\> General -\> Additional Include Directories, add the parent-folder(s) of the following paths:  
> (…)/Photon-cpp/inc  
> (…)/Common-cpp/inc
> 
> 2. At Linker -\> Input -\> Additional Dependencies add either Common-cpp\_release\_windows.lib and Photon-cpp\_release\_windows.lib or Common-cpp\_debug\_windows.lib and Photon-cpp\_debug\_windows.lib
> 
> 3. Add the folders Photon-cpp/lib and Common-cpp/lib to Linker -\> General -\> Additional Library Directories
> 
> 4. Add the following #include directive to your source-code:  
> #include “Photon-cpp/inc/PhotonPeer.h”

**The Problem:**  
C/C++ -\> General -\> Additional Include Directories and Linker -\> Input -\> Additional Dependencies are only available under the “Shipping\_Game” configuration, and I’m working in the “Development\_Editor” configuration.

Is there a way to view these options under “Development\_Editor”? Or does it make a difference if it’s under Shipping\_Game at all?

Thanks.

---

<div class="post-metadata">

**Author:** ![Mikand79](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikand79](https://forums.unrealengine.com/u/Mikand79)\
**Post date:** [March 2, 2015, 10:49pm UTC](https://forums.unrealengine.com/t/visual-studio-additional-include-directories-cant-find-linker/22399/2 "2015-03-02T22:49:15Z")

</div>

Its more complicated then that because UE4 doesn’t use Visual Studios build system for anything else then starting the build. Take a look f.e. here:

> **[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 — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![Taurian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taurian](https://forums.unrealengine.com/u/Taurian)\
**Post date:** [March 2, 2015, 11:23pm UTC](https://forums.unrealengine.com/t/visual-studio-additional-include-directories-cant-find-linker/22399/3 "2015-03-02T23:23:25Z")

</div>

Ok, so I should:

Put Photon-cpp and Common-cpp into the ThirdParty folder (Engine) and call it from there.

I also noticed that the link you mentioned references: “Filter through to Configuration Properties \> C/C++ \> Code Generation \> Runtime Library”

But we don’t have C/C++ \> Code Generation as an option.

Can you tell me what I’m missing?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7d05e42b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7d05e42b1](https://forums.unrealengine.com/u/anonymous_user_7d05e42b1)\
**Post date:** [March 3, 2015, 1:23pm UTC](https://forums.unrealengine.com/t/visual-studio-additional-include-directories-cant-find-linker/22399/4 "2015-03-03T13:23:40Z")

</div>

Those instructions from the Photon documentation that you have quoted are not suitable for an Unreal Engine 4 project, as Unreal Engine 4 uses it’s own build system, where you set up such settings, as others have already mentioned.

For instruction and an example on how to add Photon to an Unreal Engine 4 project please have a look at

> **[Fusion Introduction | Photon Engine](https://doc.photonengine.com/fusion/current/getting-started/fusion-intro)**
>
> Fusion is a new high performance state synchronization networking library for Unity. With a single API, it supports two fundamentally different...

and at  
[http://forum.exitgames.com/viewtopic.php?f=3&t=4717](http://forum.exitgames.com/viewtopic.php?f=3&t=4717)

---

<div class="post-metadata">

**Author:** ![Taurian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taurian](https://forums.unrealengine.com/u/Taurian)\
**Post date:** [March 3, 2015, 2:04pm UTC](https://forums.unrealengine.com/t/visual-studio-additional-include-directories-cant-find-linker/22399/5 "2015-03-03T14:04:21Z")

</div>

I’ve seen those links, is it possible that the current version of Photon just isn’t compatible with UE 4.6?

It seems like both of those links are highly out of date.

It could also explain why there aren’t any tutorials for setting up Photon and Unreal.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7d05e42b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7d05e42b1](https://forums.unrealengine.com/u/anonymous_user_7d05e42b1)\
**Post date:** [March 3, 2015, 2:12pm UTC](https://forums.unrealengine.com/t/visual-studio-additional-include-directories-cant-find-linker/22399/6 "2015-03-03T14:12:25Z")

</div>

> [@Taurian;235295](#):
>
> is it possible that the current version of Photon just isn’t compatible with UE 4.6?

What makes you think it is? The current version is perfectly compatible with UE4.6.

---

<div class="post-metadata">

**Author:** ![Taurian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taurian](https://forums.unrealengine.com/u/Taurian)\
**Post date:** [March 3, 2015, 2:41pm UTC](https://forums.unrealengine.com/t/visual-studio-additional-include-directories-cant-find-linker/22399/7 "2015-03-03T14:41:54Z")

</div>

> [@Kaiserludi;235223](#):
>
> Those instructions from the Photon documentation that you have quoted are not suitable for an Unreal Engine 4 project, as Unreal Engine 4 uses it’s own build system, where you set up such settings, as others have already mentioned.
> 
> For instruction and an example on how to add Photon to an Unreal Engine 4 project please have a look at  
> [Fusion Introduction | Photon Engine](http://doc.exitgames.com/en/realtime/current/sdks-and-api/sdk-unreal-engine)  
> and at  
> [http://forum.exitgames.com/viewtopic.php?f=3&t=4717](http://forum.exitgames.com/viewtopic.php?f=3&t=4717)

You’ve just copied the instructions I’ve mentioned above. Unfortunately they are inapplicable to UE 4.6.

> [@](#):
>
> Move the SDKs into your project. Refer to each SDK’s docs for proper inclusion and linking!

SDK documentation

> [@](#):
>
> 1. In C/C++ -\> General -\> Additional Include Directories, add the parent-folder(s) of the following paths:  
> (…)/Photon-cpp/inc  
> (…)/Common-cpp/inc
> 
> 2. At Linker -\> Input -\> Additional Dependencies add either Common-cpp\_release\_windows.lib and Photon-cpp\_release\_windows.lib or Common-cpp\_debug\_windows.lib and Photon-cpp\_debug\_windows.lib
> 
> 3. Add the folders Photon-cpp/lib and Common-cpp/lib to Linker -\> General -\> Additional Library Directories
> 
> 4. Add the following #include directive to your source-code:  
> #include “Photon-cpp/inc/PhotonPeer.h”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7d05e42b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7d05e42b1](https://forums.unrealengine.com/u/anonymous_user_7d05e42b1)\
**Post date:** [March 3, 2015, 3:03pm UTC](https://forums.unrealengine.com/t/visual-studio-additional-include-directories-cant-find-linker/22399/8 "2015-03-03T15:03:54Z")

</div>

It’s not really out of date. “Refer to each SDK’s docs for proper inclusion and linking!” simply was always misleading for UE4, not just for 4.6.

I Think the best is when you just have a look at how the Photon UE4 demo in the zip package provided at the second link does it.  
Inside that pacakge ./Source/PhotonDemoParticle/PhotonDemoParticle.Build.cs cares about telling UE4 where to find the Photon headers and libs.

---

<div class="post-metadata">

**Author:** ![Taurian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taurian](https://forums.unrealengine.com/u/Taurian)\
**Post date:** [March 3, 2015, 3:22pm UTC](https://forums.unrealengine.com/t/visual-studio-additional-include-directories-cant-find-linker/22399/9 "2015-03-03T15:22:14Z")

</div>

I see. I was looking at the Particle Demo that came with the SDK like any sane person would do – not the one by BertelMonster.

Well it loads in 4.7. Let’s see if it works in 4.7.
