# Generating dll while UE4 editor is opened

**URL:** <https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546>\
**Category:** Platform & Builds\
**Tags:** c-build, unreal-engine, build-failed, question\
**Created:** [February 10, 2017, 3:34pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546 "2017-02-10T15:34:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [February 10, 2017, 3:34pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/1 "2017-02-10T15:34:00Z")

</div>

I noticed, that in 4.15 I cannot build c++ code while editor is opened. I had not such problem with 4.14. If I close the editor, it goes thru just fine.

Here is the error:

```
2> Creating library C:\GameArtists\Unreal\GameSavePro\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-GameSavePro-1478.lib and object C:\GameArtists\Unreal\GameSavePro\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-GameSavePro-1478.exp
2> Creating library C:\GameArtists\Unreal\GameSavePro\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-GameSavePro-1478.suppressed.lib and object C:\GameArtists\Unreal\GameSavePro\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-GameSavePro-1478.suppressed.exp
2>ERROR : UBT error : Failed to produce item: C:\GameArtists\Unreal\GameSavePro\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-GameSavePro-4536.lib
2> Total build time: 3.89 seconds (Local executor: 0.00 seconds)
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ""C:\Program Files (x86)\Epic Games\4.15\Engine\Build\BatchFiles\Build.bat" GameSaveProEditor Win64 Development "C:\GameArtists\Unreal\GameSavePro\GameSavePro.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
```

---

<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:** [February 15, 2017, 10:41pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/2 "2017-02-15T22:41:54Z")

</div>

Hi Flash7,

I just tried to recreate this issue in a new 4.15 project, and didn’t have any trouble doing a hot reload. Would you be able to provide some additional information?

- Are you using the binary version of the Engine installed through the Launcher, or did you build the Engine from source code?
- What version of Visual Studio are you using?
- What changes to your code are you making?
- How are you starting the build process?

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [February 15, 2017, 11:01pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/3 "2017-02-15T23:01:03Z")

</div>

> Are you using the binary version of the Engine installed through the Launcher, or did you build the Engine from source code?  
> I run the Editor via Launcher

> What version of Visual Studio are you using?  
> VS 2015 (update 3)

> What changes to your code are you making?  
> I have a blueprint library. Every time I change a source code (.h and .cpp) and recompile, I have this problem.

> How are you starting the build process?  
> In Visual Studio - build solution (F7)

If I close the editor, build goes thru just fine and I see in output:  
2\> Deleting old hot reload file: “C:\GameArtists\Unreal\GameSavePro\Binaries\Win64\UE4Editor-GameSavePro-7218.dll”.  
2\> Deleting old hot reload file: “C:\GameArtists\Unreal\GameSavePro\Binaries\Win64\UE4Editor-GameSavePro-7218.pdb”.

---

<div class="post-metadata">

**Author:** ![Akihiro.Kayama](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Akihiro.Kayama](https://forums.unrealengine.com/u/Akihiro.Kayama)\
**Post date:** [February 15, 2017, 11:56pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/4 "2017-02-15T23:56:36Z")

</div>

I experienced same problem with EGL 4.15.0 Preview 4/Visual Studio 2015 Update2/some modification added ThirdPerson project.  
DLL was successfully produced without error log but UBT reported fail.  
After deleting Intermediate/ directory, the symptom had gone away and I can’t reproduce it.

---

<div class="post-metadata">

**Author:** ![nrobinson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nrobinson](https://forums.unrealengine.com/u/nrobinson)\
**Post date:** [February 16, 2017, 4:33pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/5 "2017-02-16T16:33:12Z")

</div>

We’re having similar issues, hot-reload is working correctly if we use the compile button in the editor, however building through visual studio successfully creates a DLL but the editor the fails to load it, which disables hot-reloading causing later hot-reload builds to fail to link in VS and the compile button to disappear. This is consistent across our team so it’s not specific to one machine although we all probably have a similar setup.

Win10, VS2015 Update3

VS and editor output below:

[3/4] Link UE4Editor-MyGame-27-Win64-DebugGame.dll  
2\> [4/4] Link UE4Editor-MyGame-27-Win64-DebugGame.lib  
2\> Creating library E:\dev\MyGame\Game\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-MyGame-27-Win64-DebugGame.lib and object E:\dev\MyGame\Game\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-MyGame-27-Win64-DebugGame.exp  
2\> Creating library E:\dev\MyGame\Game\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-MyGame-27-Win64-DebugGame.suppressed.lib and object E:\dev\MyGame\Game\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-MyGame-27-Win64-DebugGame.suppressed.exp  
2\> Deploying MyGameEditor Win64 DebugGame…  
2\> Total build time: 14.43 seconds (Local executor: 5.37 seconds)

LogHotReload: New module detected: UE4Editor-MyGame-27-Win64-DebugGame.dll  
LogHotReload: Starting Hot-Reload from IDE  
LogSlate: Took 0.000244 seconds to synchronously load lazily loaded font ‘…/…/…/Engine/Content/Slate/Fonts/Roboto-Light.ttf’ (159K)  
LogModuleManager:Warning: ModuleManager: Unable to load module ‘E:/dev/MyGame/Game/Binaries/Win64/UE4Editor-MyGame-27-Win64-DebugGame.dll’ because the file couldn’t be loaded by the OS.  
Warning: HotReload failed, reload failed /Script/MyGame.  
LogContentBrowser: Native class hierarchy populated in 0.0141 seconds. Added 2327 classes and 487 folders.  
Display: HotReload took 0.1s.

---

<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:** [February 16, 2017, 5:02pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/6 "2017-02-16T17:02:10Z")

</div>

Do you get the same result if you right-click on the project in Visual Studio’s Solution Explorer and select the Build option?

---

<div class="post-metadata">

**Author:** ![nrobinson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nrobinson](https://forums.unrealengine.com/u/nrobinson)\
**Post date:** [February 16, 2017, 5:15pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/7 "2017-02-16T17:15:37Z")

</div>

Wierdly the first time I did a right click on the project build I got hundreds of duplicate function linker errors, but since then I’m getting the same behaviour as using F7/Ctrl+Shift+B

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [February 16, 2017, 5:38pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/8 "2017-02-16T17:38:27Z")

</div>

, yes, there is the same error if I select Build from solution explorer.

---

<div class="post-metadata">

**Author:** ![nrobinson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nrobinson](https://forums.unrealengine.com/u/nrobinson)\
**Post date:** [February 16, 2017, 5:56pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/9 "2017-02-16T17:56:52Z")

</div>

Hi ,

I’m not at all certain, but I think it may be related to building plugins. We have a code plugin in the game directory rather than installed into the engine. The VS built hot-reload dll for the game has a dependency on a hot-reload dll for the plugin, however the plugin hot-reload dll hasn’t been output by the build process, although a lib and exp have. When building through the editor the game hot-reload dll has a dependency on the base plugin dll instead.

i.e.  
VS: game-437-win.dll → plugin-437-win.dll (missing)  
Editor: game-437-win.dll → plugin-win.dll

Cheers,

Nick

---

<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:** [February 17, 2017, 4:15pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/10 "2017-02-17T16:15:46Z")

</div>

Thank you for the clarification everyone. Using a project that contained a plugin, I was able to see the error message that was described. I am curious to know if the hot reload is actually failing for you, though. In my case, Visual Studio was reporting the build failed with that error message, but in the Editor the changes were available (only changes to project code, plugins currently do not get hot reloaded).

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [February 17, 2017, 4:58pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/11 "2017-02-17T16:58:53Z")

</div>

, I tried to replicate it on different c++ projects (no plug-ins), and I see that the same error on each of them if an editor is opened. Just for clarification, it worked well in 4.12-4.14. This type of error showed up only in 4.15

---

<div class="post-metadata">

**Author:** ![nrobinson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nrobinson](https://forums.unrealengine.com/u/nrobinson)\
**Post date:** [February 17, 2017, 5:09pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/12 "2017-02-17T17:09:20Z")

</div>

Unfortunately that’s not the case for me, the code changes (in the primary game dll) aren’t going through to the editor.

---

<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:** [February 17, 2017, 9:13pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/13 "2017-02-17T21:13:22Z")

</div>

That’s unfortunate, I thought I had managed to reproduce what you were seeing. I will have to look into this further next week. Would it be at all possible to get a sample project that I could compare with my setup to see where I am doing things differently?

---

<div class="post-metadata">

**Author:** ![Akihiro.Kayama](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Akihiro.Kayama](https://forums.unrealengine.com/u/Akihiro.Kayama)\
**Post date:** [February 18, 2017, 2:52am UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/14 "2017-02-18T02:52:42Z")

</div>

Here is a reproducible step I found with EGL 4.15.0.

- Launch EGL 4.15.0 from EGL

- Create a new C++ ThirdPerson project (named tps16)

- edit and save tps16.cpp (no actual modification needed)

- Build with VS2015 (and hot reload DLL is generated successfully)

- Finish UE4Editor.exe (with its window close button)

- execute UE4Editor.exe(with double click on tps16.uproject)

- edit and save tps16.cpp (no actual modification needed)

- Build with VS2015(Ctrl+Shift+B)

- and then DLL is generated successfully but UBT reports failed

Don’t care “???” which is because UBT can’t handle Japanese character. These lines means success.  
I noticed .lib are numbered wrongly in log. Actual generated .lib is UE4Editor-tps16-8715.lib.

I think this is related to [Unreal Engine Issues and Bug Tracker (UE-42041)](https://issues.unrealengine.com/issue/UE-42041)  
(hot reload DLL is wrongly loaded when editor launched, without rebuild)

---

<div class="post-metadata">

**Author:** ![neofuturelabs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neofuturelabs/32/1194562_2.png) [@neofuturelabs](https://forums.unrealengine.com/u/neofuturelabs)\
**Post date:** [February 20, 2017, 4:35am UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/15 "2017-02-20T04:35:06Z")

</div>

I’ve also been getting the same error whenever doing runtime compiling from Visual Studio after upgrading from 4.14.3 to 4.15.0. Doing any modification to a .cpp or .h file and building while the editor is open causes the error, but if the editor is closed there is no problem.

I’m not using any editor plugins and haven’t made any changes to the project or tried any new features since upgrading to 4.15.0.

```
1>------ Build started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Build started: Project: Project, Configuration: Development_Editor x64 ------
2> Compiling game modules for hot reload
2> Performing 3 actions (4 in parallel)
2> ProjectComponent.cpp
2> [2/3] Link UE4Editor-Project-8362.dll
2> [3/3] Link UE4Editor-Project-3008.lib
2> Creating library D:\UnrealProjects\Project\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Project-8362.lib and object D:\UnrealProjects\Project\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Project-8362.exp
2> Creating library D:\UnrealProjects\Project\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Project-8362.suppressed.lib and object D:\UnrealProjects\Project\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Project-8362.suppressed.exp
2>ERROR : UBT error : Failed to produce item: D:\UnrealProjects\Project\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Project-3008.lib
2> Total build time: 14.57 seconds (Local executor: 0.00 seconds)
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.15\Engine\Build\BatchFiles\Build.bat" ProjectEditor Win64 Development "D:\UnrealProjects\Project\Project.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
```

---

<div class="post-metadata">

**Author:** ![neofuturelabs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neofuturelabs/32/1194562_2.png) [@neofuturelabs](https://forums.unrealengine.com/u/neofuturelabs)\
**Post date:** [February 20, 2017, 6:55am UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/16 "2017-02-20T06:55:23Z")

</div>

Weirdly enough, the hot reload seems to be succeeding and reflecting the changes despite the error…

---

<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:** [February 20, 2017, 10:53pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/17 "2017-02-20T22:53:09Z")

</div>

Hi Akihiro.Kayama,

Thank you for this repro case. I was able to use it to easily reproduce the issue without needing to use a plugin. I want to check a couple more things tomorrow, including upgrading projects to 4.15, but I think this is the issue that most people are seeing.

---

<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:** [February 21, 2017, 4:06pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/18 "2017-02-21T16:06:26Z")

</div>

Hello everyone,

Thank you for the information that you have provided for this issue. I was able to reproduce the issue that I believe the majority of you are seeing, and reported it in [UE-42205](https://issues.unrealengine.com/issue/UE-42205) for further investigation. If you are seeing different results from what I reported in that ticket, please continue to provide any additional information you may have specific to your results and I will keep trying to reproduce those results.

---

<div class="post-metadata">

**Author:** ![eudrea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eudrea](https://forums.unrealengine.com/u/eudrea)\
**Post date:** [February 23, 2017, 12:58pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/19 "2017-02-23T12:58:45Z")

</div>

The workaround suggested doesn’t always work (for example in our case, it doesn’t work once).  
That’s the error we’re getting. I’ve reproduced the steps you specify in the Bug description on how to workaround it.  
“ERROR : UBT error : Failed to produce item:  
D:\Lucru\Cube\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-Cube-7736.lib”

One strange thing which I don’t think I’ve seen before is the linking to 2 different file names (the lib is not the same as the dll).

```
> 1> Compiling game modules for hot
> reload 1> Performing 4 actions (4 in
> parallel) 1> EnemySpawner.cpp 1> 
> TankStage3BossComponent.cpp 1> [3/4]
> Link UE4Editor-Cube-7449.dll 1> [4/4]
> Link UE4Editor-Cube-7736.lib
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4f69c81c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4f69c81c](https://forums.unrealengine.com/u/anonymous_user_4f69c81c)\
**Post date:** [February 26, 2017, 7:01pm UTC](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546/20 "2017-02-26T19:01:53Z")

</div>

I have exacly the same problem since I updated to 4.15. It worked just fine in 4.14. Deleting the Intermediate folder and generating project files worked until i started the editor, closed it and opened it again afterwards.  
Now again, i can’t build my project…

[Next page](https://forums.unrealengine.com/t/generating-dll-while-ue4-editor-is-opened/384546.md?page=2)
