Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/160.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
虚幻引擎4.10.1 can';编译Visual Studio 2015项目 我最近在Windows 7上安装了UE的最新版本,并制作了一个新的空C++项目。创建项目后,它给了我一个错误,说它无法编译。我在VS中打开该项目以手动编译它,这是我得到的输出。 我在网上查了一下,但没有得到答案。 编辑:我在编译非UE项目时使用这些标题,没有任何问题 1>------ Build started: Project: RPG, Configuration: Development_Editor x64 ------ 1> Performing 7 actions (2 in parallel) 1> [2/7] Resource PCLaunch.rc 1>C:\Program Files\Epic Games\4.10\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc(10): fatal error RC1015: cannot open include file 'windows.h'. 1> 1> PCH.RPG.h.cpp 1>C:\Program Files\Epic Games\4.10\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5): fatal error C1083: Cannot open include file: 'new': No such file or directory 1> [3/7] Resource ModuleVersionResource.rc.inl 1>C:\Program Files\Epic Games\4.10\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3): fatal error RC1015: cannot open include file 'windows.h'. 1> 1> -------- End Detailed Actions Stats ----------------------------------------------------------- 1>ERROR : UBT error : Failed to produce item: C:\Users\Jack\Documents\Unreal Projects\RPG\Binaries\Win64\UE4Editor-RPG.dll 1> Total build time: 3.64 seconds 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command ""C:\Program Files\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat" RPGEditor Win64 Development "C:\Users\Jack\Documents\Unreal Projects\RPG\RPG.uproject" -rocket -waitmutex -2015" exited with code -1. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========_C++_Compilation_Visual Studio 2015_Project_Unreal Engine4 - Fatal编程技术网

虚幻引擎4.10.1 can';编译Visual Studio 2015项目 我最近在Windows 7上安装了UE的最新版本,并制作了一个新的空C++项目。创建项目后,它给了我一个错误,说它无法编译。我在VS中打开该项目以手动编译它,这是我得到的输出。 我在网上查了一下,但没有得到答案。 编辑:我在编译非UE项目时使用这些标题,没有任何问题 1>------ Build started: Project: RPG, Configuration: Development_Editor x64 ------ 1> Performing 7 actions (2 in parallel) 1> [2/7] Resource PCLaunch.rc 1>C:\Program Files\Epic Games\4.10\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc(10): fatal error RC1015: cannot open include file 'windows.h'. 1> 1> PCH.RPG.h.cpp 1>C:\Program Files\Epic Games\4.10\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5): fatal error C1083: Cannot open include file: 'new': No such file or directory 1> [3/7] Resource ModuleVersionResource.rc.inl 1>C:\Program Files\Epic Games\4.10\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3): fatal error RC1015: cannot open include file 'windows.h'. 1> 1> -------- End Detailed Actions Stats ----------------------------------------------------------- 1>ERROR : UBT error : Failed to produce item: C:\Users\Jack\Documents\Unreal Projects\RPG\Binaries\Win64\UE4Editor-RPG.dll 1> Total build time: 3.64 seconds 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command ""C:\Program Files\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat" RPGEditor Win64 Development "C:\Users\Jack\Documents\Unreal Projects\RPG\RPG.uproject" -rocket -waitmutex -2015" exited with code -1. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

虚幻引擎4.10.1 can';编译Visual Studio 2015项目 我最近在Windows 7上安装了UE的最新版本,并制作了一个新的空C++项目。创建项目后,它给了我一个错误,说它无法编译。我在VS中打开该项目以手动编译它,这是我得到的输出。 我在网上查了一下,但没有得到答案。 编辑:我在编译非UE项目时使用这些标题,没有任何问题 1>------ Build started: Project: RPG, Configuration: Development_Editor x64 ------ 1> Performing 7 actions (2 in parallel) 1> [2/7] Resource PCLaunch.rc 1>C:\Program Files\Epic Games\4.10\Engine\Source\Runtime\Launch\Resources\Windows\PCLaunch.rc(10): fatal error RC1015: cannot open include file 'windows.h'. 1> 1> PCH.RPG.h.cpp 1>C:\Program Files\Epic Games\4.10\Engine\Source\Runtime\Core\Public\HAL\PlatformIncludes.h(5): fatal error C1083: Cannot open include file: 'new': No such file or directory 1> [3/7] Resource ModuleVersionResource.rc.inl 1>C:\Program Files\Epic Games\4.10\Engine\Source\Runtime\Core\Resources\Windows\ModuleVersionResource.rc.inl(3): fatal error RC1015: cannot open include file 'windows.h'. 1> 1> -------- End Detailed Actions Stats ----------------------------------------------------------- 1>ERROR : UBT error : Failed to produce item: C:\Users\Jack\Documents\Unreal Projects\RPG\Binaries\Win64\UE4Editor-RPG.dll 1> Total build time: 3.64 seconds 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command ""C:\Program Files\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat" RPGEditor Win64 Development "C:\Users\Jack\Documents\Unreal Projects\RPG\RPG.uproject" -rocket -waitmutex -2015" exited with code -1. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========,c++,compilation,visual-studio-2015,project,unreal-engine4,C++,Compilation,Visual Studio 2015,Project,Unreal Engine4,真正让我困惑的是,它显然无法打开new.h和windows.h,尽管当我检查文件包含的位置时,Visual Studio在打开文件时没有问题。创建虚拟引擎项目后,您可能会遇到以下错误: “致命错误RC1015:无法打开包含文件'windows.h'” 致命错误C1083:无法打开包含文件:“新建”:没有此类文件或目录 要修复它,请打开项目(不是EU4项目)属性/VC++目录 如果您看到诸如“包含目录”、“库目录”之类的空文件,请单击右侧的组合框并选择“从父项或项目默认值继承”。 然后重新编译

真正让我困惑的是,它显然无法打开new.h和windows.h,尽管当我检查文件包含的位置时,Visual Studio在打开文件时没有问题。

创建虚拟引擎项目后,您可能会遇到以下错误:

  • “致命错误RC1015:无法打开包含文件'windows.h'”
  • 致命错误C1083:无法打开包含文件:“新建”:没有此类文件或目录
要修复它,请打开项目(不是EU4项目)属性/VC++目录

如果您看到诸如“包含目录”、“库目录”之类的空文件,请单击右侧的组合框并选择“从父项或项目默认值继承”。 然后重新编译项目

下图:


可能重复我在UE项目之外使用的标题,没有问题。