Unable to compile Cpp project but blueprints work

I am unable to create any new projects in CPP, I keep getting the following error message:

The project could not be compiled. Would you like to open it in Visual Studio?

Running C:/Program Files (x86)/Epic Games/UE_4.16/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject Development Win64 -project=“D:/workspace/Unreal Workspace/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 “D:\workspace\Unreal Workspace\MyProject\MyProject.uproject” “D:\workspace\Unreal Workspace\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\MyProjectEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for MyProjectEditor in 7.1818093 seconds
@progress pop
Performing 9 actions (4 in parallel)
[2/9] Resource ModuleVersionResource.rc.inl
[3/9] Resource PCLaunch.rc
[8/9] Link UE4Editor-MyProject.dll
[9/9] Link UE4Editor-MyProject.lib
LINK : fatal error LNK1181: cannot open input file ‘wininet.lib’
Creating library D:\workspace\Unreal Workspace\MyProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject.lib and object D:\workspace\Unreal Workspace\MyProject\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-MyProject.exp
ERROR: UBT ERROR: Failed to produce item: D:\workspace\Unreal Workspace\MyProject\Binaries\Win64\UE4Editor-MyProject.dll
Total build time: 37.01 seconds (Local executor: 0.00 seconds)

I’ve tried reinstalling every SDK, VS 2017, VS 2015, Epic Games launcher, but I am unable to compile or open any projects in the editor unless it’s blueprint. Within blueprint I am unable to compile a blank file with the error:

CompilerResultsLog:Error: Error LINK : fatal error LNK1181: cannot open input file ‘wininet.lib’