Every time I try to create a new C++ project, I always get a message about failing to compile some dll. Specifically, I am trying to do the Sample project “Battery Collector” and I always get this message:
The project could not be compiled. Would you like to open it in Visual Studio?
Running C:/Program Files (x86)/Epic Games/4.9/Engine/Binaries/DotNET/UnrealBuildTool.exe BatteryCollector Development Win64 -project=“C:/Users/Taylor/Desktop/Schoolwork/Semester 8/GAM400/UE_SampleProjects/BatteryCollector/BatteryCollector.uproject” -rocket -editorrecompile -progress -noubtmakefiles
@progress push 5%
Parsing headers for BatteryCollectorEditor
Running UnrealHeaderTool “C:/Users/Taylor/Desktop/Schoolwork/Semester 8/GAM400/UE_SampleProjects/BatteryCollector/BatteryCollector.uproject” “C:\Users\Taylor\Desktop\Schoolwork\Semester 8\GAM400\UE_SampleProjects\BatteryCollector\Intermediate\Build\Win64\BatteryCollectorEditor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -rocket -installed
Reflection code generated for BatteryCollectorEditor in 9.0447454 seconds
@progress pop
Performing 8 actions (4 in parallel)
[3/8] Resource ModuleVersionResource.rc.inl
[2/8] Resource PCLaunch.rc
PCH.BatteryCollector.h.cpp
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\sal.h(2886) : warning RC4005: ‘__useHeader’ : redefinition
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\sal.h(2896) : warning RC4005: ‘__on_failure’ : redefinition
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\sal.h(2886) : warning RC4005: ‘__useHeader’ : redefinition
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\sal.h(2896) : warning RC4005: ‘__on_failure’ : redefinition
BatteryCollector.generated.cpp
BatteryCollectorGameMode.cpp
BatteryCollectorCharacter.cpp
BatteryCollector.cpp
[8/8] Link UE4Editor-BatteryCollector.dll
Creating library C:\Users\Taylor\Desktop\Schoolwork\Semester 8\GAM400\UE_SampleProjects\BatteryCollector\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-BatteryCollector.lib and object C:\Users\Taylor\Desktop\Schoolwork\Semester 8\GAM400\UE_SampleProjects\BatteryCollector\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-BatteryCollector.exp
BatteryCollector.h.obj : error LNK2019: unresolved external symbol __imp_towlower referenced in function “private: static int __cdecl FGenericPlatformStricmp::CompatibleCharTypesStricmp(wchar_t const *,wchar_t const *)” (??$CompatibleCharTypesStricmp@_W_W@FGenericPlatformStricmp@@CAHPEB_W0@Z)
BatteryCollector.h.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
BatteryCollectorCharacter.cpp.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
BatteryCollectorGameMode.cpp.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
BatteryCollector.generated.cpp.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3
BatteryCollector.h.obj : error LNK2001: unresolved external symbol _fltused
BatteryCollectorCharacter.cpp.obj : error LNK2001: unresolved external symbol _fltused
BatteryCollectorCharacter.cpp.obj : error LNK2001: unresolved external symbol _purecall
BatteryCollector.generated.cpp.obj : error LNK2001: unresolved external symbol _purecall
BatteryCollectorCharacter.cpp.obj : error LNK2019: unresolved external symbol __imp_IsDebuggerPresent referenced in function “public: struct FInputAxisBinding & __cdecl UInputComponent::BindAxis(class FName,class ABatteryCollectorCharacter ,void (__cdecl ABatteryCollectorCharacter::)(float))” (??$BindAxis@VABatteryCollectorCharacter@@@UInputComponent@@QEAAAEAUFInputAxisBinding@@VFName@@PEAVABatteryCollectorCharacter@@P83@EAAXM@Z@Z)
BatteryCollectorGameMode.cpp.obj : error LNK2001: unresolved external symbol __imp_IsDebuggerPresent
BatteryCollector.generated.cpp.obj : error LNK2001: unresolved external symbol __imp_IsDebuggerPresent
BatteryCollectorGameMode.cpp.obj : error LNK2019: unresolved external symbol memcpy referenced in function “class UClass * __cdecl ConstructorHelpersInternal::FindOrLoadClass(class FString &,class UClass *)” (?FindOrLoadClass@ConstructorHelpersInternal@@YAPEAVUClass@@AEAVFString@@PEAV2@@Z)
BatteryCollector.generated.cpp.obj : error LNK2001: unresolved external symbol __GSHandlerCheck_EH
BatteryCollector.generated.cpp.obj : error LNK2019: unresolved external symbol __security_check_cookie referenced in function “class UClass * __cdecl Z_Construct_UClass_ABatteryCollectorCharacter(void)” (?Z_Construct_UClass_ABatteryCollectorCharacter@@YAPEAVUClass@@anonymous_user_9674a66c)
BatteryCollector.generated.cpp.obj : error LNK2019: unresolved external symbol __security_cookie referenced in function “class UClass * __cdecl Z_Construct_UClass_ABatteryCollectorCharacter(void)” (?Z_Construct_UClass_ABatteryCollectorCharacter@@YAPEAVUClass@@anonymous_user_9674a66c)
LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
C:\Users\Taylor\Desktop\Schoolwork\Semester 8\GAM400\UE_SampleProjects\BatteryCollector\Binaries\Win64\UE4Editor-BatteryCollector.dll : fatal error LNK1120: 10 unresolved externals
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users\Taylor\Desktop\Schoolwork\Semester 8\GAM400\UE_SampleProjects\BatteryCollector\Binaries\Win64\UE4Editor-BatteryCollector.dll
Total build time: 29.59 seconds
I don’t understand what is going on or how to fix it. I need to start working with Unreal for a class in school and this is blocking me from doing so.
Can anyone help me out?