# Embedding a C++ program in a game project

**URL:** <https://forums.unrealengine.com/t/embedding-a-c-program-in-a-game-project/348817>\
**Category:** C++\
**Tags:** unreal-engine, UE4, CPP, question\
**Created:** [February 26, 2016, 11:11pm UTC](https://forums.unrealengine.com/t/embedding-a-c-program-in-a-game-project/348817 "2016-02-26T23:11:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![anonymous\_user\_1fb002ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1fb002ad](https://forums.unrealengine.com/u/anonymous_user_1fb002ad)\
**Post date:** [February 27, 2016, 12:18am UTC](https://forums.unrealengine.com/t/embedding-a-c-program-in-a-game-project/348817/4 "2016-02-27T00:18:17Z")

</div>

Unfortunatly I cannot do that the compiler says I need common.h as first include:

```
EXEC : error : All source files in module "unreal_dontmakelove" must include the same precompiled header first. Currently "[...]\Source\unreal_dontmakelove\ChatScript-6.2.b\SRC\common.h" is included by most of the source files. The following source files are not including "[...]\Source\unreal_dontmakelove\ChatScript-6.2.b\SRC\common.h" as their first include:
    1>
    1> [...]\Source\unreal_dontmakelove\ChatbotEngineCore.cpp (including C:\Program Files (x86)\Epic Games\4.10\Engine\Source\Runtime\Core\Public\Windows\AllowWindowsPlatformTypes.h)
    1> [...]\Source\unreal_dontmakelove\unreal_dontmakelove.cpp (including C:\Program Files (x86)\Epic Games\4.10\Engine\Source\Runtime\Core\Public\Windows\AllowWindowsPlatformTypes.h)

```

By the way windows.h is included inside common.h I tried nonetheless to include it again as second in the unreal files, but the compiler still gives the same errors.

---

_[View the full topic](https://forums.unrealengine.com/t/embedding-a-c-program-in-a-game-project/348817)._
