首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >我在“虚幻”编译错误中创建自顶向下射手C++项目时出错

我在“虚幻”编译错误中创建自顶向下射手C++项目时出错
EN

Stack Overflow用户
提问于 2021-11-29 02:47:36
回答 1查看 1K关注 0票数 0

我得到一个错误时,试图创建一个自上而下的射手c++项目在虚幻.我认为这可能与分页文件有关,但我不确定。我已经为编译器安装了VisualStudio2022社区,并使用Rider作为一个实际的IDE,它是默认的。如果有人知道如何解决这个问题,我们将不胜感激。

错误信息:

代码语言:javascript
运行
复制
The project could not be compiled. Would you like to open it in Rider?
    
    Running C:/Program Files/Epic Games/UE_4.27/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="C:/Users/Admin/Documents/Unreal Projects/Survival/Survival.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
    Creating makefile for SurvivalEditor (no existing makefile)
    @progress push 5%
    Parsing headers for SurvivalEditor
      Running UnrealHeaderTool "C:\Users\Admin\Documents\Unreal Projects\Survival\Survival.uproject" "C:\Users\Admin\Documents\Unreal Projects\Survival\Intermediate\Build\Win64\SurvivalEditor\Development\SurvivalEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\Admin\AppData\Local\UnrealBuildTool\Log_UHT.txt" -installed
    LogInit: Display: Loading text-based GConfig....
    Reflection code generated for SurvivalEditor in 10.9429744 seconds
    @progress pop
    Building SurvivalEditor...
    Using Visual Studio 2019 14.30.30705 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
    Building 13 actions with 4 processes...
      @progress 'Compiling C++ source code...' 0%
      @progress 'Compiling C++ source code...' 8%
      [1/13] Default.rc2
      @progress 'Compiling C++ source code...' 15%
      [2/13] SharedPCH.Engine.ShadowErrors.cpp
      Detected compiler newer than Visual Studio 2019, please update min version checking in WindowsPlatformCompilerSetup.h
      @progress 'Compiling C++ source code...' 23%
      [3/13] SurvivalGameMode.cpp
      c1xx: error C3859: Failed to create virtual memory for PCH
      c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
      
      
      c1xx: note: please visit https://aka.ms/pch-help for more details
      c1xx: fatal error C1076: compiler limit: internal heap limit reached
      @progress 'Compiling C++ source code...' 31%
      [4/13] SurvivalCharacter.gen.cpp
      c1xx: error C3859: Failed to create virtual memory for PCH
      c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
      
      
      c1xx: note: please visit https://aka.ms/pch-help for more details
      c1xx: fatal error C1076: compiler limit: internal heap limit reached
      @progress 'Compiling C++ source code...' 38%
      [5/13] Survival.cpp
      @progress 'Compiling C++ source code...' 46%
      [6/13] SurvivalPlayerController.gen.cpp
      @progress 'Compiling C++ source code...' 54%
      [7/13] Survival.init.gen.cpp
      c1xx: error C3859: Failed to create virtual memory for PCH
      c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.
      
      
      c1xx: note: please visit https://aka.ms/pch-help for more details
      c1xx: fatal error C1076: compiler limit: internal heap limit reached
      @progress 'Compiling C++ source code...' 62%
      [8/13] SurvivalPlayerController.cpp
      @progress 'Compiling C++ source code...' 69%
      [9/13] SurvivalGameMode.gen.cpp
      @progress 'Compiling C++ source code...' 77%
      [10/13] SurvivalCharacter.cpp
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-11-29 05:04:02

只是太多的符号或模板实例化。

使用/Zm调整编译器堆限制,并在这里遵循其他建议:

https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1076?view=msvc-170

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70149246

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档