x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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
 
Product Version: UE 4.10 Preview
Tags:
more ▼

asked Nov 04 '15 at 06:30 PM in C++ Programming

avatar image

Pseudocorpus
431 38 48 143

avatar image Matthew J Nov 11 '15 at 04:55 PM

Hello Braindrain85,

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?

avatar image Pseudocorpus Nov 11 '15 at 07:48 PM

Hello Matthew. 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.
 
 
 

avatar image Pseudocorpus Nov 12 '15 at 12:46 AM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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

alt text

toolchain.png (30.8 kB)
more ▼

answered Nov 11 '15 at 07:55 PM

avatar image

Justin.Dooley
2.2k 104 75 164

avatar image Pseudocorpus Nov 12 '15 at 12:45 AM

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!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

more ▼

answered Nov 11 '15 at 07:55 PM

avatar image

cageman
673 31 33 66

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question