Hi for all from Epic team and community users! I try to run new C++ project on my Visual Studio 2013 Professional, but this empty project is not compiling! This is error message from it:
The project failed to compile with this version of the engine. Would you like to open the project in Visual Studio?
And this is more deepest log:
The project failed to compile with this version of the engine. Build output is as follows:
Running C:/Program Files/Epic Games/4.7/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject Development Win64 -project=“C:/Users/Вадим/Documents/Unreal Projects/Unreal Engine 4 Tutorial/MyProject/MyProject.uproject” -rocket -editorrecompile -progress
Parsing headers for MyProjectEditor
Reflection code generated for MyProjectEditor
Performing 10 actions (2 in parallel)
[2/10] Resource ModuleVersionResource.rc.inl
PCH.MyProject.MyProject.h.cpp
C:\Program Files\Epic Games\4.7\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3) : fatal error RC1015: cannot open include file ‘windows.h’.
[3/10] Resource MyProject.rc
C:\Users\C:\Program Files\Epic Games\4.7\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5) : fatal error C1083: Cannot open include file: ‘new’: No such file or directory
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users????\Documents\Unreal Projects\Unreal Engine 4 Tutorial\MyProject\Binaries\Win64\UE4Editor-MyProject.dll
Cumulative action seconds (4 processors): 0,00 building projects, 1,25 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,00 linking, 0,00 other
UBT execution time: 38,06 seconds
This is message from Visual Studio:
Error 4 error MSB3073: The command ““C:\Program Files\Epic Games\4.7\Engine\Build\BatchFiles\Build.bat” MyProjectEditor Win64 Development “C:\Users\Вадим\Documents\Unreal Projects\Unreal Engine 4 Tutorial\MyProject\MyProject.uproject” -rocket” exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 38 5 MyProject
I can’t find Win64 Solution Platform into Visual Studio settings! Maybe yours can help me for this issue! That I doing wrong? Thanks for your answers!
Solved! Thanks all for yours answers! This is bug? If you have this issue you need start Visual Studio 2013 with your project sources and follow to Project->Reference->VC++Directories and select for all inherit value from combo box menu and try compile again! Enjoy and I sure this bug is fixed soon as Epic team can doing this!
I’m glad to hear that you were able to solve the problem you were having. Just as an extra piece of information in looking for a solution for everying experiencing this issue, at what point was the project failing to create? Additionally, are you using source code from GitHub or the binary version from the Launcher?
Hi and all who reading this question topic! I see this issue where I launch editor and into projects viewer, I change new C++ project, after generating code, editor message to Me about: The project failed to compile with this version of the engine. Would you like to open the project in Visual Studio? I can’t compile any C++ template from editor too! I used compiled binary version from Launcher not from GitHub! You want tell about GitHub version is fixed this bug? Thanks for answer!
We’re had other users reporting similar problems with creating code projects and I was trying to judge if it was specific to the launcher or GitHub source. This has been reported to our internal tracking database (UE-11475) for further investigation. You can try downloading the zip file of the source code and running both Setup.bat and GenerateProjectFiles.bat and then building the engine. If you’re still having the same problem I would suggest using a blueprint project or changing to another engine version to create a code project.
Hi ! No! Thanks for support for this issue, but this solution not work for me! I have others errors on the compiling time! I want solve for this problem into latest binary version! Thanks for answer!
Hi for all Unreal Engine 4 users and Epic support team! Maybe anybody know, how setting Visual Studio 2013 Professional with VC++Directories inherit value for all projects by default? Thanks for all answers!
We will continue to investigate the issue of not being able to create a C++ project. As for your more recent question, it would be best to create a new post for this to prevent confusion over multiple questions being answered in one place. You could also try asking over on the forums (https://forums.unrealengine.com/) where you’re likely to get more feedback from the Unreal community.
When trying to start any new C++ project I got the version error mentioned in the OP.
When trying to rebuild in VS I got error about not being able to find ws2_32.lib
I got it fixed by going to programs and features in Windows. (where you uninstall stuff)
Click on MS Visual Studio 2013
Click REPAIR
and when the options show up as to where to REPAIR from, choose the internet… even if you have a disc or an image. It doesn’t ask for a key or anything.
Let it go. took about 20 mins for me. Then it all worked fine.
Hi ! I try your method just right now! But it not help for me and I have this issue without fixing! I not use C++ project for any time and I used only Blueprint! Now I think, that Epic give very more time for Blueprint support and very small time for C++ support! I hope this situation fixed soon as possible! Thanks for answers!
Now that 4.7.3 has been released I encourage everyone to update their engine version and attempt to create a C++ project again. If anyone is still having problems creating projects please let us know what operating system you are using, if you are using the binary version or source code version of the engine, and any other information that may be useful such as error messages.
Hi and all from Epic team! I already downloaded Unreal Engine 4.7.3 binary version, but this issue not fixed! I looked changelog on forum, but this is not include into them! Thanks for your answer!
Hi for all Unreal Engine 4 developers and Epic team! Thanks vanilla4i! I already try your method used Unreal Engine 4 version 4.7.6 and this is not work! I can’t create any C++ project or adding code to already created project! Because I used just Blueprint for programming!
Are you still unable to create a code based project? Are you using the engine from the Unreal Launcher or are you building the source of the engine from GitHub? If you are using source code, can you test if you have the same issue with the 4.8 branch currently available?
Hi ! I used Unreal Engine binary version with launcher and I already try to create C++ code based project and add new C++ class to pure Blueprint project too, but all this trying is failed! Maybe that this not right into my computer, but I don’t know that! I already install and reinstall Windows 8.1 SDK, Visual Studio 2013 Professional, Direct X and .NET Framework latest version, but no help this! I want to know, that create my errors ( see up to my first post ), this errors always show them I try to create new C++ code based project! Thanks for your answer!