New Project Won't Compile

I’m trying to create a new project and regardless if I use the Basic Code Template or other templates, I get the following errors:
The project could not be compiled. Would you like to open it in Visual Studio?

Running C:/Program Files/Epic Games/UE_4.15/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject Development Win64 -project="C:/Users/k/Documents/Unreal Projects/MyProject/MyProject.uproject" -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for MyProject (no existing makefile)
@progress push 5%
Parsing headers for MyProjectEditor
  Running UnrealHeaderTool "C:\Users\k\Documents\Unreal Projects\MyProject\MyProject.uproject" "C:\Users\k\Documents\Unreal Projects\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\MyProjectEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProjectEditor in 3.2690443 seconds
@progress pop
Performing 9 actions (4 in parallel)
[3/9] Resource PCLaunch.rc
[2/9] Resource ModuleVersionResource.rc.inl
PCH.MyProject.cpp
MyProject.cpp
MyProject.generated.cpp
MyProjectGameMode.cpp
MyProjectCharacter.cpp
[8/9] Link UE4Editor-MyProject.dll
[9/9] Link UE4Editor-MyProject.lib
   Creating library C:\Users\k\Documents\Unreal Projects\MyProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject.suppressed.lib and object C:\Users\k\Documents\Unreal Projects\MyProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject.suppressed.exp
MyProjectGameMode.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl AGameModeBase::SetPause(class APlayerController *,class TBaseDelegate<bool>)" (?SetPause@AGameModeBase@@UEAA_NPEAVAPlayerController@@V?$TBaseDelegate@_N$$$V@@@Z)
MyProject.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl AGameModeBase::SetPause(class APlayerController *,class TBaseDelegate<bool>)" (?SetPause@AGameModeBase@@UEAA_NPEAVAPlayerController@@V?$TBaseDelegate@_N$$$V@@@Z)
C:\Users\k\Documents\Unreal Projects\MyProject\Binaries\Win64\UE4Editor-MyProject.dll : fatal error LNK1120: 1 unresolved externals
   Creating library C:\Users\k\Documents\Unreal Projects\MyProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject.lib and object C:\Users\k\Documents\Unreal Projects\MyProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject.exp
ERROR: UBT ERROR: Failed to produce item: C:\Users\k\Documents\Unreal Projects\MyProject\Binaries\Win64\UE4Editor-MyProject.dll
Total build time: 34.22 seconds (Local executor: 0.00 seconds)

When I try opening the project, I get a window saying:
“The following modules are missing or built with a different engine version:
UE4Editor-MyProject.dll
Would you like to rebuild them now?”

Followed by:
MyProject could not be compiled. Try rebuilding from source manually.

Any help will be much appreciated!

I have the same problem too!!! if you or anyone can fix pls tell me

I have fixed it! On my end, I needed to have Visual Studio 2015, so I rolledback on my version of VS2017. :slight_smile: