# Can't compile

**URL:** <https://forums.unrealengine.com/t/cant-compile/309595>\
**Category:** C++\
**Tags:** tutorial, debug, unreal-engine, question, CPP\
**Created:** [March 6, 2015, 10:52am UTC](https://forums.unrealengine.com/t/cant-compile/309595 "2015-03-06T10:52:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sider87\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sider87\_1](https://forums.unrealengine.com/u/Sider87_1)\
**Post date:** [March 6, 2015, 10:52am UTC](https://forums.unrealengine.com/t/cant-compile/309595/1 "2015-03-06T10:52:40Z")

</div>

hello

This is the first time I try the unreal engine and visual studio and I started with the video tutorial “introduction to UE4 programming” and fallowed it until I tried to “start new instance” and then I got an error message saying there was a build error

after that I get a message:

"the following modules are missing or built with a diffrent engine version:

UE4Editor-tutorialcode-win64-DebugGame.dll

Would you like to rebuild them now?"

after pressing yes I receive the message:

“tutorialcode could not be compiled. Try rebuilding from the source manually”

How do I solve this problem?

---

<div class="post-metadata">

**Author:** ![Oromis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oromis](https://forums.unrealengine.com/u/Oromis)\
**Post date:** [March 6, 2015, 11:22am UTC](https://forums.unrealengine.com/t/cant-compile/309595/2 "2015-03-06T11:22:42Z")

</div>

Try to open the Solution file in Visual Studio. It is in your project directory and is called .sln. Double click it and it should open in Visual Studio. Press “F7” to compile and “F5” to run.

Edit: In case there is no .sln file, make sure you actually selected the correct project template (the tutorial was made with an old version of the engine, the dialog looks different now). Try to use this Template:

 ![32654-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/f/f1fa61ce076eff537908592f8229b110a2c278a1.png)

---

<div class="post-metadata">

**Author:** ![Sider87\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sider87\_1](https://forums.unrealengine.com/u/Sider87_1)\
**Post date:** [March 6, 2015, 12:37pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/3 "2015-03-06T12:37:24Z")

</div>

I tried to do that but I still got the same problem

---

<div class="post-metadata">

**Author:** ![Cobryis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cobryis](https://forums.unrealengine.com/u/Cobryis)\
**Post date:** [March 6, 2015, 9:17pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/4 "2015-03-06T21:17:36Z")

</div>

So it builds find in VS also but then when you launch you get this problem?

---

<div class="post-metadata">

**Author:** ![Sider87\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sider87\_1](https://forums.unrealengine.com/u/Sider87_1)\
**Post date:** [March 6, 2015, 10:01pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/5 "2015-03-06T22:01:46Z")

</div>

I found out that by doing “rebuild” and then “start new instance” I could go into the editor but I still can’t enter the editor directly from the launcher/file explorer and I receive the same error messages when I try to.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [March 7, 2015, 10:55pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/6 "2015-03-07T22:55:25Z")

</div>

Hey Sider87-

Just to help clarify, are you unable to create a new C++ based project or unable to compile code for an already existing project?

Thanks

---

<div class="post-metadata">

**Author:** ![Sider87\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sider87\_1](https://forums.unrealengine.com/u/Sider87_1)\
**Post date:** [March 7, 2015, 11:23pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/7 "2015-03-07T23:23:20Z")

</div>

I now noticed that when I start a new project in C++ I get a message saying

“project conversion failed”

“The project failed to compile with this version of the engine. Would you like to open the project in visual studio?”  
(my version is 4.7.2)

---

<div class="post-metadata">

**Author:** ![Sider87\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sider87\_1](https://forums.unrealengine.com/u/Sider87_1)\
**Post date:** [March 8, 2015, 11:37pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/8 "2015-03-08T23:37:57Z")

</div>

The project failed to compile with this version of the engine. Build output is as follows:

Running C:/Program Files/Epic Games/4.7/Engine/Binaries/DotNET/UnrealBuildTool.exe test Development Win64 -project=“D:/unreal projects/test/test.uproject” -rocket -editorrecompile -progress  
Parsing headers for testEditor  
Reflection code generated for testEditor  
Performing 8 actions (4 in parallel)  
[2/8] Resource ModuleVersionResource.rc.inl  
[3/8] Resource test.rc  
PCH.test.test.h.cpp  
D:\unreal projects\test\Source\test\Resources\Windows\test.rc(8) : fatal error RC1015: cannot open include file ‘windows.h’.

C:\Program Files\Epic Games\4.7\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3) : fatal error RC1015: cannot open include file ‘windows.h’.

C:\Program Files\Epic Games\4.7\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5) : fatal error C1083: Cannot open include file: ‘new’: No such file or directory  
-------- End Detailed Actions Stats -----------------------------------------------------------  
ERROR: UBT ERROR: Failed to produce item: D:\unreal projects\test\Binaries\Win64\UE4Editor-test.dll  
Cumulative action seconds (4 processors): 0.00 building projects, 0.32 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other  
UBT execution time: 7.66 seconds

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_37c81313](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_37c81313](https://forums.unrealengine.com/u/anonymous_user_37c81313)\
**Post date:** [March 9, 2015, 12:15am UTC](https://forums.unrealengine.com/t/cant-compile/309595/9 "2015-03-09T00:15:39Z")

</div>

You can try to do this: I just made the video to show you how to regenerate your project (thanks to a couple people here!).

---

<div class="post-metadata">

**Author:** ![Sider87\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sider87\_1](https://forums.unrealengine.com/u/Sider87_1)\
**Post date:** [March 9, 2015, 12:05pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/10 "2015-03-09T12:05:31Z")

</div>

Unfortunately it didn’t help and I still get the same error messages

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [March 9, 2015, 5:17pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/11 "2015-03-09T17:17:07Z")

</div>

Hey Sider87-

We’re currently investigating the issue of users not being able to create code projects (UE-11475). For the time being you may want to use a blueprint project instead or try using another version of the engine if you want/need access to source code.

Cheers

---

<div class="post-metadata">

**Author:** ![BaseDrop0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BaseDrop0](https://forums.unrealengine.com/u/BaseDrop0)\
**Post date:** [September 7, 2016, 4:13am UTC](https://forums.unrealengine.com/t/cant-compile/309595/12 "2016-09-07T04:13:20Z")

</div>

I am getting the same error, I looked everywhere on the internet but can’t find an answer! You would think that a tool that is so important in game development they would be a clear solution to this problem… ☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [September 7, 2016, 12:28pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/13 "2016-09-07T12:28:15Z")

</div>

Hey

Can you provide any details about the exact issue you’re experiencing? This will help identify if what you’re seeing is indeed the same issue or if something else.

---

<div class="post-metadata">

**Author:** ![BaseDrop0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BaseDrop0](https://forums.unrealengine.com/u/BaseDrop0)\
**Post date:** [September 7, 2016, 9:29pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/14 "2016-09-07T21:29:56Z")

</div>

I followed along the online documentation and youtube tutorials for the vs and ue4. When i go to start a new instance and build the code i get an error

“The following modules are missing or built with a different engine version: UE4Editor-Code-Win64-DebugGame.dll  
Would you like to rebuild them?”

If I click yes, I get an error saying:  
“Code could not be compiled. Try rebuilding from source manually”

If I press no, nothing happens and the build stops.

Thank you for any answers, I’ve been trying to do this for a long time (like over 6 months). I’m using the VS Community edition and UE4 4.11.1 and updated to 4.12.5 and still getting this problem

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [September 8, 2016, 2:56pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/15 "2016-09-08T14:56:05Z")

</div>

When you mentioned tutorials, are you referring to the “3rd Person Power-Up Game with C++” tutorial? If so, could you specify which video and where in the video your issue arises? Additionally, are you using Visual Studio 2013 or 2015? If you are working with UE 4.11.1 or 4.12.5, VS2015 will be needed instead of 2013. If you open the .sln in Visual Studio are you able to compile the project? If not, please provide the compile errors received.

---

<div class="post-metadata">

**Author:** ![BaseDrop0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BaseDrop0](https://forums.unrealengine.com/u/BaseDrop0)\
**Post date:** [September 8, 2016, 9:02pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/16 "2016-09-08T21:02:12Z")

</div>

Like tutorial 1 or 2, “Project Creation”, I start getting this issue at 4:40, when I start a new instance to build the project.  
Using Visual Studio 2015. Unistalled both VS 2013 and 2015 and re intstalled 2015  
And by errors do you mean this?

 ![106253-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/6/6e64b242701e94e21126f219618d022e31066001.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [September 9, 2016, 12:44pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/17 "2016-09-09T12:44:55Z")

</div>

Seeing that your error is “OtherCompilationError(5)” the root cause may be found in the output tab next to the error list. You should be able to find the same line of OtherCompilationError(5) there along with a second line (usually the line or two before) that gives a more detailed explanation. If you can post a screenshot of the Output window I can try to help determine what the exact issue is.

---

<div class="post-metadata">

**Author:** ![BaseDrop0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BaseDrop0](https://forums.unrealengine.com/u/BaseDrop0)\
**Post date:** [September 10, 2016, 5:06am UTC](https://forums.unrealengine.com/t/cant-compile/309595/18 "2016-09-10T05:06:57Z")

</div>

I couldn’t find where the otherCompilationError(5) was in the output.

But I tried starting a new project and I don’t get either of the errors in the error list but it still says I’m missing the module, here’s the output of the debug, idk if this helps, the new project will compile in the editor while the original did not

LogInit:Display: Running engine for game: CodingTest  
LogPlatformFile: Not using cached wrapper  
LogInit:Display: RandInit(-1174718141) SRandInit(-1174718139).  
LogTaskGraph: Started task graph with 4 named threads and 7 total threads with 1 sets of task threads.  
LogStats: Stats thread started at 0.148237  
LogInit:Warning: Incompatible or missing module: UE4Editor-CodingTest-Win64-DebugGame.dll  
‘UE4Editor.exe’ (Win32): Loaded ‘C:\Windows\System32\msctf.dll’. Cannot find or open the PDB file.  
LogExit: Preparing to exit.  
The thread 0x20c has exited with code 0 (0x0).  
The thread 0xfb0 has exited with code 0 (0x0).  
The thread 0x16f4 has exited with code 0 (0x0).  
LogModuleManager: Shutting down and abandoning module TextureCompressor (14)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [September 20, 2016, 3:05pm UTC](https://forums.unrealengine.com/t/cant-compile/309595/19 "2016-09-20T15:05:32Z")

</div>

If creating a new project still gives errors in Visual Studio, can you try creating a non UE4, Hello World project in Visual Studio and let me know if that runs or gives you errors as well?

Does the original UE4 project still give the “otherCompilationError(5)” you mentioned before? If so can you post a screenshot of the Output tab as well?

---

<div class="post-metadata">

**Author:** ![BaseDrop0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BaseDrop0](https://forums.unrealengine.com/u/BaseDrop0)\
**Post date:** [September 21, 2016, 1:36am UTC](https://forums.unrealengine.com/t/cant-compile/309595/20 "2016-09-21T01:36:55Z")

</div>

I created a new UE4 project in 4.12.5 and I didn’t get any errors. I don’t get the “otherComplinationError(5)” in non UE4 projects. Maybe it was the save that got messed up or just something with the version. But created a new project and it seems to work fine.

[Next page](https://forums.unrealengine.com/t/cant-compile/309595.md?page=2)
