[UE5] ConcurrentLinearAllocator.h(31): error C4067: 전처리기 지시문 다음에 예기치 않은 토큰이 있습니다.
언리얼 5.5.4 c++로 프로젝트 생성시
위와같이
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: 전처리기 지시문 다음에 예기치 않은 토큰이 있습니다. 줄 바꿈 문자가 필요합니다.
에러가 나왔다.
▶️ 전체 에러메세지
Running C:/Program Files/Epic Games/UE_5.4/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="E:/UnrealProject/250408/p08/p08.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="E:/UnrealProject/250408/p08/p08.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\assort_c5\AppData\Local\UnrealBuildTool\Log.txt
Available x64 toolchains (1):
* C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
(Family=14.42.34433, FamilyRank=5, Version=14.42.34433, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34433 is not a preferred version. Please use the latest preferred version 14.38.33130
Available x64 toolchains (1):
* C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
(Family=14.42.34433, FamilyRank=5, Version=14.42.34433, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34433 is not a preferred version. Please use the latest preferred version 14.38.33130
Creating makefile for p08Editor (no existing makefile)
Available x64 toolchains (1):
* C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
(Family=14.42.34433, FamilyRank=5, Version=14.42.34433, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34433 is not a preferred version. Please use the latest preferred version 14.38.33130
Available x64 toolchains (1):
* C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
(Family=14.42.34433, FamilyRank=5, Version=14.42.34433, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34433 is not a preferred version. Please use the latest preferred version 14.38.33130
@progress push 5%
Parsing headers for p08Editor
Running Internal UnrealHeaderTool E:\UnrealProject\250408\p08\p08.uproject E:\UnrealProject\250408\p08\Intermediate\Build\Win64\p08Editor\Development\p08Editor.uhtmanifest -WarningsAsErrors -installed
Total of 0 written
Reflection code generated for p08Editor in 0.8041693 seconds
@progress pop
Building p08Editor...
Using Visual Studio 2022 14.42.34433 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433) and Windows 10.0.26100.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Warning: Visual Studio 2022 compiler is not a preferred version
Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
Executing up to 6 processes, one per physical core
Using Parallel executor to run 6 action(s)
------ Building 6 action(s) started ------
[1/6] Resource Default.rc2
[2/6] Compile [x64] SharedPCH.UnrealEd.Project.ValApi.Cpp20.cpp
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4668: '__has_feature'은(는) 전처리기 매크로로 정의되어 있지 않으므로 '#if/#elif'에 해당하는 '0'으로 바뀝니다.
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: 전처리기 지시문 다음에 예기치 않은 토큰이 있습니다. 줄 바꿈 문자가 필요합니다.
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Engine\Classes\Engine\SkeletalMesh.h(930): warning C4996: 'FBoneMirrorInfo': FBoneMirrorInfo is deprecated. Please use UMirrorDataTable for mirroring support. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
Total time in Parallel executor: 20.23 seconds
Total execution time: 31.47 seconds
MSVC v143 - VS 2022 C++ x64/x86 빌드도구 (v14.38 - 17.8) 설치하니 정상화
언리얼 버전마다 안정적인 버전이 있는듯함.