[Bug report, UE 4.13] Error LNK2011: precompiled object not linked in; image may not run

Hello.

There was some bug, that fixed with

SHA-1: 3ea72406dce30be0e12c7841d2412db2aeb3de6c

* Failed link actions during a hot reload now output a 'failed.hotreload' file in the destination folder to indicate that another link attempt is needed.
This is because we can't distinguish between a successful compile with a failed link action, and a compile with no changes which requires no new module.

#jira UE-31575
#rb robert.manuszewski

But it looks, like this bug isn’t fixed correct.

In some times, compiling of the project from the UE editor rising an error:

Recompiling MySQLConnectorUE4Plugin...
Recompiling SQLite3UE4Plugin...
Recompiling VictoryUMG...
Recompiling MyGame...
Building UnrealBuildTool...
Building UnrealBuildTool in e:/UnrealEngine/...
Running: C:\WINDOWS\system32\cmd.exe /c "e:\UnrealEngine\Engine\Intermediate\Build\UnrealBuildTool\BuildUBT.bat"
Launching UnrealBuildTool... [e:/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe MyGame -ModuleWithSuffix MySQLConnectorUE4Plugin 5398 -ModuleWithSuffix SQLite3UE4Plugin 3680 -ModuleWithSuffix VictoryUMG 8177 -ModuleWithSuffix MyGame 2625 Win64 Development -editorrecompile -canskiplink "e:/MyGame/MyGame.uproject"  -2015]
Warning: Starting HotReload took  6.8s.
CompilerResultsLog: New page: Compilation - Aug 13, 2016, 6:09:43 PM
CompilerResultsLog: Info Compiling game modules for hot reload
CompilerResultsLog: Info Performing 2 actions (2 in parallel)
CompilerResultsLog: Info Module.MySQLConnectorUE4Plugin.cpp
CompilerResultsLog: Info [2/2] Link UE4Editor-MySQLConnectorUE4Plugin-5398.dll
CompilerResultsLog: Info    Creating library e:\MyGame\Plugins\MySQLConnectorUE4Plugin\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MySQLConnectorUE4Plugin-5398.lib and object e:\MyGame\Plugins\MySQLConnectorUE4Plugin\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MySQLConnectorUE4Plugin-5398.exp
CompilerResultsLog:Error: Error Module.MySQLConnectorUE4Plugin.cpp.obj : error LNK2011: precompiled object not linked in; image may not run
CompilerResultsLog:Error: Error e:\MyGame\Plugins\MySQLConnectorUE4Plugin\Binaries\Win64\UE4Editor-MySQLConnectorUE4Plugin-5398.dll : fatal error LNK1120: 1 unresolved externals
CompilerResultsLog: Info ERROR: UBT ERROR: Failed to produce item: e:\MyGame\Plugins\MySQLConnectorUE4Plugin\Binaries\Win64\UE4Editor-MySQLConnectorUE4Plugin-5398.dll
CompilerResultsLog: Info Total build time: 43,17 seconds
LogMainFrame: MainFrame: Module compiling took 53.593 seconds
Warning: HotReload failed, recompile failed

But if I close UE Editor, remove Binaries folder in the projects dir, all binaries compiled very well, if I open UE Editor after this.

Hey ,

I am having a difficult time trying to reproduce this issue. Do you have any more information on how to reliably make this compiling error occur?

Thanks.

Hello, Kyle.

It’s really interesting situation, because I got tons of this error and I could 100% reproduce it yesterday and day before yesterday, but today I can’t reproduce it… I will not close this issue in 3 days. If it will not be reproducible, I’ll close issue after 3 days…

Thank you!

Yeah, I’ve seen it and already posted in that issue link to this issue ))).