Download

UE4 4.83/4.92 C++ Projects and Visual Studio 2013 compiling errors

Hey Guys,

I am created some C++ Projects from the Unreal Project Browser
example:

1.0 C++ > Puzzle or ThirdPerson > Select the folder and Name of the project

2.0 After hitting the button “Create Project”

  1. A window comes up with this error message

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

Running C:/Program Files/Epic Games/4.8/Engine/Binaries/DotNET/UnrealBuildTool.exe Puzzle Development Win64 -project=“D:/Unreal_Projects_NextGen/Puzzle/Puzzle.uproject” -rocket -editorrecompile -progress -noubtmakefiles
InitD3DDevice
Parsing headers for PuzzleEditor
Reflection code generated for PuzzleEditor
Performing 10 actions (12 in parallel)
[2/10] Resource ModuleVersionResource.rc.inl
[3/10] Resource PCLaunch.rc
PCH.Puzzle.h.cpp
PuzzleGameMode.cpp
PuzzleBlockGrid.cpp
PuzzleBlock.cpp
PuzzlePlayerController.cpp
Puzzle.cpp
Puzzle.generated.cpp
[10/10] Link UE4Editor-Puzzle.dll
LINK : fatal error LNK1181: cannot open input file ‘ws2_32.lib’
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: D:\Unreal_Projects_NextGen\Puzzle\Binaries\Win64\UE4Editor-Puzzle.dll
Total build time: 40.90 seconds

NOTE: The Blueprint works fine but any of the C++ throw the error above.

If I open the project in Visual Studio and Do a clean, rebuild and build, I get the errors below and the project never launches.

Error 1 error LNK1181: cannot open input file ‘ws2_32.lib’ D:\Unreal_Projects_NextGen\Puzzle\Intermediate\ProjectFiles\LINK Puzzle
Error 2 error : Failed to produce item: D:\Unreal_Projects_NextGen\Puzzle\Binaries\Win64\UE4Editor-Puzzle.dll D:\Unreal_Projects_NextGen\Puzzle\Intermediate\ProjectFiles\ERROR Puzzle
Error 3 error MSB3075: The command ““C:\Program Files\Epic Games\4.8\Engine\Build\BatchFiles\Rebuild.bat” PuzzleEditor Win64 Development “D:\Unreal_Projects_NextGen\Puzzle\Puzzle.uproject” -rocket” exited with code 5. Please verify that you have sufficient rights to run this command. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 43 5 Puzzle

If I go to the Unreal Hub > Library and double click on the Project, I get this
The following modules are missing or built with a different engine version
UE4Editor-Puzzle.dll
Would you like to rebuild them now?

Starts to build and it finishes but with this error:
Puzzle could not be compiled. Try rebuilding from source manually.
When I do, I get the 3 large errors from above.

Has anyone experienced this? if so, how do I fix it?
Thanks
M

It’s working now, In windows 10, I went to Add Remove Programs, I selected Microsoft Visual Studio Ultimate 2013 right click, repair, rebooted the machine and now it’s working as expected.
Thanks

Same problem here…

This did the thing for me. Thank you very much sir.