Cannot create code-based project in 4.10

Hi.

I’m trying to create a C++ project in 4.10. Blueprint projects work fine, but if I try to create a C++ project I get this error :

Running C:/Program Files/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe test2 Development Win64 -project="C:/Users/Lord of Xy/Documents/Unreal Projects/test2/test2.uproject" -rocket -editorrecompile -progress -noubtmakefiles -2015
@progress push 5%
Parsing headers for test2Editor
  Running UnrealHeaderTool "C:/Users/Lord of Xy/Documents/Unreal Projects/test2/test2.uproject" "C:\Users\Lord of Xy\Documents\Unreal Projects\test2\Intermediate\Build\Win64\test2Editor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed
Reflection code generated for test2Editor in 4.2171423 seconds
@progress pop
Performing 7 actions (4 in parallel)
[2/7] Resource PCLaunch.rc
[3/7] Resource ModuleVersionResource.rc.inl
PCH.test2.h.cpp
test2.generated.cpp
test2.cpp
test2GameMode.cpp
[7/7] Link UE4Editor-test2.dll
   Creating library C:\Users\Lord of Xy\Documents\Unreal Projects\test2\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-test2.lib and object C:\Users\Lord of Xy\Documents\Unreal Projects\test2\Intermediate/Build/Win64\UE4Editor\Development\UE4Editor-test2.exp
LINK : fatal error LNK1101: incorrect MSPDB140.DLL version; recheck installation of this product
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users\Lord of Xy\Documents\Unreal Projects\test2\Binaries\Win64\UE4Editor-test2.dll
Total build time: 22.99 seconds

I tried to compile it in Visual Studio 2015, but I get these errors.

Severity	Code	Description	Project	File	Line
Error	MSB3073	The command ""C:\Program Files\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat" test2Editor Win64 Development "C:\Users\Lord of Xy\Documents\Unreal Projects\test2\test2.uproject" -rocket -waitmutex -2015" exited with code -1.	test2	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets	37

Error		Failed to produce item: C:\Users\Lord of Xy\Documents\Unreal Projects\test2\Binaries\Win64\UE4Editor-test2.dll	test2	C:\Users\Lord of Xy\Documents\Unreal Projects\test2\Intermediate\ProjectFiles\ERROR	1

Error	LNK1101	incorrect MSPDB140.DLL version; recheck installation of this product	test2	C:\Users\Lord of Xy\Documents\Unreal Projects\test2\Intermediate\ProjectFiles\LINK	1

Anyone has an idea what else I can try?

Hello,

This seems to be an error related to Visual Studio based on this error message: “Error LNK1101 incorrect MSPDB140.DLL version; recheck installation of this product”
I’d recommend attempting to reinstall Visual Studio and seeing if this solves the issue. When you reinstall, ensure that you check the Common Tools for C++, as this is not included with the default VS installation.

Have a great day,

Sean Flint

Hey, thanks for the answer.

I was using Visual Studio Express 2015; I uninstalled it and installed Visual Studio Community 2015 instead (with the common tools), and it’s now working!

Thanks again.