VS2015 Compiling UE4.10 Preview Linker Error

When I am trying to compile my Project with the 4.10.4 Preview in VS 2013 and 2015, I’m getting some Linker Errors. Mostly they have to do with a “SetPause”-Function. But I never touched this function… not even with an override.

Severity	Code	Description	Project	File	Line
Error	LNK2001	unresolved external symbol "public: virtual bool __cdecl APlayerController::SetPause(bool,class TBaseDelegate<bool>)" (?SetPause@APlayerController@@UEAA_N_NV?$TBaseDelegate@_N$$$V@@@Z)	StruggleOfMages	C:\Users\brain\Documents\Unreal Projects\StruggleOfMages 4.10\Intermediate\ProjectFiles\StruggleOfMages.generated.cpp.obj	1
Error	MSB3073	The command ""C:\Program Files\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat" StruggleOfMagesEditor Win64 Development "C:\Users\brain\Documents\Unreal Projects\StruggleOfMages 4.10\StruggleOfMages.uproject" -rocket -waitmutex" exited with code -1.	StruggleOfMages	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets	38
Error	LNK1120	4 unresolved externals	StruggleOfMages	C:\Users\brain\Documents\Unreal Projects\StruggleOfMages 4.10\Binaries\Win64\UE4Editor-StruggleOfMages.dll	1
Error		Failed to produce item: C:\Users\brain\Documents\Unreal Projects\StruggleOfMages 4.10\Binaries\Win64\UE4Editor-StruggleOfMages.dll	StruggleOfMages	C:\Users\brain\Documents\Unreal Projects\StruggleOfMages 4.10\Intermediate\ProjectFiles\ERROR	1
Error	LNK2001	unresolved external symbol "public: virtual bool __cdecl AGameMode::SetPause(class APlayerController *,class TBaseDelegate<bool>)" (?SetPause@AGameMode@@UEAA_NPEAVAPlayerController@@V?$TBaseDelegate@_N$$$V@@@Z)	StruggleOfMages	C:\Users\brain\Documents\Unreal Projects\StruggleOfMages 4.10\Intermediate\ProjectFiles\SomGameMode.cpp.obj	1
Error	LNK2001	unresolved external symbol "public: virtual bool __cdecl APlayerController::SetPause(bool,class TBaseDelegate<bool>)" (?SetPause@APlayerController@@UEAA_N_NV?$TBaseDelegate@_N$$$V@@@Z)	StruggleOfMages	C:\Users\brain\Documents\Unreal Projects\StruggleOfMages 4.10\Intermediate\ProjectFiles\SomPlayerController.cpp.obj	1
Error	LNK2019	unresolved external symbol "__declspec(dllimport) public: static class TBaseDelegate<class UObjectBase * * *> & __cdecl FCoreDelegates::GetObjectArrayForDebugVisualizersDelegate(void)" (__imp_?GetObjectArrayForDebugVisualizersDelegate@FCoreDelegates@@SAAEAV?$TBaseDelegate@PEAPEAPEAVUObjectBase@■■■$V@@XZ) referenced in function "void __cdecl `dynamic initializer for 'GObjectArrayForDebugVisualizers''(void)" (??__EGObjectArrayForDebugVisualizers@@YAXXZ)	StruggleOfMages	C:\Users\brain\Documents\Unreal Projects\StruggleOfMages 4.10\Intermediate\ProjectFiles\StruggleOfMages.cpp.obj	1
Error	LNK2019	unresolved external symbol "__declspec(dllimport) public: static class TBaseDelegate<int * * *> & __cdecl FCoreDelegates::GetSerialNumberBlocksForDebugVisualizersDelegate(void)" (__imp_?GetSerialNumberBlocksForDebugVisualizersDelegate@FCoreDelegates@@SAAEAV?$TBaseDelegate@PEAPEAPEAH$$$V@@XZ) referenced in function "void __cdecl `dynamic initializer for 'GSerialNumberBlocksForDebugVisualizers''(void)" (??__EGSerialNumberBlocksForDebugVisualizers@@YAXXZ)	StruggleOfMages	C:\Users\brain\Documents\Unreal Projects\StruggleOfMages 4.10\Intermediate\ProjectFiles\StruggleOfMages.cpp.obj	1
Error	LNK2001	unresolved external symbol "public: virtual bool __cdecl AGameMode::SetPause(class APlayerController *,class TBaseDelegate<bool>)" (?SetPause@AGameMode@@UEAA_NPEAVAPlayerController@@V?$TBaseDelegate@_N$$$V@@@Z)	StruggleOfMages	C:\Users\brain\Documents\Unreal Projects\StruggleOfMages 4.10\Intermediate\ProjectFiles\StruggleOfMages.generated.cpp.obj	1

Hello ,

Have you tried to see if the same issue happens with a fresh project to see if it is local to your project or not?

Hello . Thanks for your response.

Actually even with a new project an error occurs:

An error occurred while trying to generate project files.

Running C:/Program Files/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe  -projectfiles -project="C:/Users/brain/Documents/Unreal Projects/Test_410/Test_410.uproject" -game -rocket -progress -2015
Visual C++ 2015 toolchain does not appear to be correctly installed. Please verify that "Common Tools for Visual C++ 2015" was selected when installing Visual Studio 2015.
Discovering modules, targets and source code for game...
UnrealBuildTool Exception: ERROR: Failed to find cl.exe in the default toolchain directory C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\../../VC/bin/amd64\cl.exe. Please verify that "Common Tools for Visual C++ 2015" was selected when installing Visual Studio 2015.

run the visual studio installer again but choose modify, Then open up languages and in the C++ section include the C++ toolchain.

Looks like an VS2015 installation issue, i would advise you to reinstall it.

Thanks, it worked… but it didn’t resolve my initial linker error.

EDIT: Rebuilding and compiling did the trick. It all works fine now. Thx!

So the error with the new project is resolved and it compiles. But appearently that wasn’t the problem with my own project, because the same linker errors still pop up.