Could not be compiled. Try rebuilding from the source manually

Hi, I am trying to start a new c++ project but whenever I try to load it, it gives me the error above. I have visual studio 2015 installed. However I think the cause is that its looking for files on my c drive even though I installed visual studio on a different drive.
Edit:

when I make a new c++ blank project it gives me this
Running F:/Epic Games/UE_4.18/Engine/Binaries/DotNET/UnrealBuildTool.exe udemyTutorial Development Win64 -project=“F:/Unreal Engine/udemyTutorial/udemyTutorial.uproject” -editorrecompile -progress -NoHotReloadFromIDE
Performing full C++ include scan (building a new target)
Creating makefile for udemyTutorial (no existing makefile)
@progress push 5%
Parsing headers for udemyTutorialEditor
Running UnrealHeaderTool “F:\Unreal Engine\udemyTutorial\udemyTutorial.uproject” “F:\Unreal Engine\udemyTutorial\Intermediate\Build\Win64\udemyTutorialEditor\Development\udemyTutorialEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for udemyTutorialEditor in 8.9093941 seconds
@progress pop
Performing 9 actions (4 in parallel)
[3/9] Resource PCLaunch.rc
[2/9] Resource ModuleVersionResource.rc.inl
SharedPCH.Engine.cpp
udemyTutorialGameModeBase.cpp
udemyTutorial.init.gen.cpp
udemyTutorialGameModeBase.gen.cpp
udemyTutorial.cpp
[8/9] Link UE4Editor-udemyTutorial.dll
[9/9] Link UE4Editor-udemyTutorial.lib
LINK : fatal error LNK1181: cannot open input file ‘ws2_32.lib’
Creating library F:\Unreal Engine\udemyTutorial\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-udemyTutorial.lib and object F:\Unreal Engine\udemyTutorial\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-udemyTutorial.exp
ERROR: UBT ERROR: Failed to produce item: F:\Unreal Engine\udemyTutorial\Binaries\Win64\UE4Editor-udemyTutorial.dll
Total build time: 41.39 seconds (Local executor: 0.00 seconds)

Just let it generate a visual studio solution, open that and click “build” to build the project in Visual Studio as the Message suggests. Then check the error messages that you get when doing so. Nothing to do with your visual studio installation path, i think.

link text

link text

this is what i get:

Severity Code Description Project File Line Suppression State
Error LNK1181 cannot open input file ‘ws2_32.lib’ Tutorial1 F:\Unreal Engine\Tutorial1\Intermediate\ProjectFiles\LINK 1

Severity Code Description Project File Line Suppression State
Error Failed to produce item: F:\Unreal Engine\Tutorial1\Binaries\Win64\UE4Editor-Tutorial1.dll Tutorial1 F:\Unreal Engine\Tutorial1\Intermediate\ProjectFiles\ERROR 1

Severity Code Description Project File Line Suppression State
Error MSB3075 The command ““F:\Epic Games\UE_4.18\Engine\Build\BatchFiles\Build.bat” Tutorial1Editor Win64 Development “F:\Unreal Engine\Tutorial1\Tutorial1.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command. Tutorial1 F:\Visual Studio\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44

Well, just Go To “Add/Remove” Programs and try to repair your Visual Studio installation. Also make sure you are on Visual Studio Update 3 and in the installer menu, make sure to have “C++” -Components ticked to install those.

Well, just Go To “Add/Remove” Programs and try to repair your Visual Studio installation. Also make sure you are on Visual Studio Update 3 and in the installer menu, make sure to have “C++” -Components ticked to install those. They are not set by default!

See below, also comment below. Additionally if my 2nd comment does not help, check answerhub for

: fatal error LNK1181: cannot open input file ‘ws2_32.lib’

as a few people had problems like this in the past but I guess this is mostly due to bad installations and Visual Studio problems