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"

LNK1120:2 Unresolved externals

Hi all

I have problems with compiling the c++ for my Project.

The log: Running C:/Program Files (x86)/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject1 Development Win64 -project="T:/UnrealProjects/MyProject1/MyProject1.uproject" -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE @progress push 5% Parsing headers for MyProject1Editor Running UnrealHeaderTool "T:\UnrealProjects\MyProject1\MyProject1.uproject" "T:\UnrealProjects\MyProject1\Intermediate\Build\Win64\MyProject1Editor\Development\MyProject1Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed Reflection code generated for MyProject1Editor in 5,8770597 seconds @progress pop Performing 7 actions (2 in parallel) [2/7] Resource PCLaunch.rc PCH.MyProject1.h.cpp [3/7] Resource ModuleVersionResource.rc.inl MyProject1.generated.cpp MyProject1GameMode.cpp MyProject1.cpp [7/7] Link UE4Editor-MyProject1.dll Creating library T:\UnrealProjects\MyProject1\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject1.lib and object T:\UnrealProjects\MyProject1\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject1.exp MyProject1.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class TBaseDelegate & __cdecl FCoreDelegates::GetObjectArrayForDebugVisualizersDelegate(void)" (__imp_?GetObjectArrayForDebugVisualizersDelegate@FCoreDelegates@@SAAEAV?$TBaseDelegate@PEAVFFixedUObjectArray@@$$$V@@XZ) referenced in function "void __cdecl `dynamic initializer for 'GObjectArrayForDebugVisualizers''(void)" (??__EGObjectArrayForDebugVisualizers@@YAXXZ) MyProject1GameMode.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl AGameMode::SetPause(class APlayerController ,class TBaseDelegate)" (?SetPause@AGameMode@@UEAA_NPEAVAPlayerController@@V?$TBaseDelegate@N$$$V@@@Z) MyProject1.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool _cdecl AGameMode::SetPause(class APlayerController ,class TBaseDelegate)" (?SetPause@AGameMode@@UEAA_NPEAVAPlayerController@@V?$TBaseDelegate@_N$$$V@@@Z) T:\UnrealProjects\MyProject1\Binaries\Win64\UE4Editor-MyProject1.dll : fatal error LNK1120: 2 unresolved externals ERROR: UBT ERROR: Failed to produce item: T:\UnrealProjects\MyProject1\Binaries\Win64\UE4Editor-MyProject1.dll Total build time: 94,08 seconds

Product Version: UE 4.12
Tags:
more ▼

asked Jul 10 '16 at 11:57 AM in C++ Programming

avatar image

Svstangeland
21 1 2 3

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

0 answers: sort voted first
Be the first one to answer this question
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