I can't create the new project with C++

@progress push 5%
@progress pop
Building Test_8619Editor…
Using Visual Studio 2022 14.39.33519 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
[Adaptive Build] Excluded from Test_8619 unity file: Test_8619.cpp, Test_8619GameModeBase.cpp
Determining max actions to execute in parallel (4 physical cores, 8 logical cores)
Executing up to 4 processes, one per physical core
Requested 1.5 GB free memory per action, 3.46 GB available: limiting max parallel actions to 2
Building 8 actions with 2 processes…
[1/8] Compile SharedPCH.Engine.ShadowErrors.cpp
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): error C2440: ‘’: cannot convert from ‘const From *’ to ‘TStringConversion<TStringConvert<From,To>,128>’
with
[
From=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion’: no overloaded function could convert all the argument types
with
[
From=TCHAR,
To=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(689): note: could be ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const StringConv::FUnused *)’
with
[
From=TCHAR,
To=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const StringConv::FUnused *)’: cannot convert argument 1 from ‘const From *’ to ‘const StringConv::FUnused *’
with
[
From=TCHAR,
To=ANSICHAR
]
and
[
From=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(737): note: or ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion(FromRangeType &&)’
with
[
From=TCHAR,
To=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(698): note: or ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const SrcBufferType *,int32)’
with
[
From=TCHAR,
To=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(677): note: or ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const SrcBufferType *)’
with
[
From=TCHAR,
To=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: while trying to match the argument list ‘(const From *)’
with
[
From=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: the template instantiation context (the oldest one first) is
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Misc\SecureHash.h(75): note: see reference to function template instantiation ‘auto StringCast<ANSICHAR,128,TCHAR>(const From *)’ being compiled
with
[
From=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): error C2440: ‘’: cannot convert from ‘const From *’ to ‘TStringConversion<TStringConvert<From,To>,128>’
with
[
From=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion’: no overloaded function could convert all the argument types
with
[
From=ANSICHAR,
To=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(689): note: could be ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const StringConv::FUnused *)’
with
[
From=ANSICHAR,
To=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const StringConv::FUnused *)’: cannot convert argument 1 from ‘const From *’ to ‘const StringConv::FUnused *’
with
[
From=ANSICHAR,
To=TCHAR
]
and
[
From=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(737): note: or ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion(FromRangeType &&)’
with
[
From=ANSICHAR,
To=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(698): note: or ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const SrcBufferType *,int32)’
with
[
From=ANSICHAR,
To=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(677): note: or ‘TStringConversion<TStringConvert<From,To>,128>::TStringConversion(const SrcBufferType *)’
with
[
From=ANSICHAR,
To=TCHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: while trying to match the argument list ‘(const From *)’
with
[
From=ANSICHAR
]
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\StringConv.h(1048): note: the template instantiation context (the oldest one first) is
C:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\TypedElementFramework\Public\Elements\Framework\TypedElementData.h(64): note: see reference to function template instantiation ‘auto StringCast<TCHAR,128,ANSICHAR>(const From *)’ being compiled
with
[
From=ANSICHAR
]
LogInit: Warning: Still incompatible or missing module: Test_8619
LogCore: Engine exit requested (reason: EngineExit() was called)
LogExit: Preparing to exit.

it showing the above error I don’t know how to fix please help me
and when i run in vs code it showing the same error

Same problem have you figured it out

Hi there!
I think this problem is specifically with UE5, when you have latest Visual Studio updates. I am facing the same issue after updating Visual Studio 2022 to v17.9 yesterday.

Similar issues are reported recently in their community posts:
[Internal compiler error after upgrading Visual Studio to 17.9.0 - Developer Community]
https://developercommunity.visualstudio.com/t/Internal-compiler-error-after-upgrading/10594256?sort=newest&topics=visual+studio+2019&WT.mc_id=WD-MVP-5003763

1 Like

Same for me here after updating VS 2022 to v17.9, the solution is:

  1. Open Visual Studio Installer.
  2. Rollback the updates.
1 Like

Problem solving method,You can try it.copies or replaces files. github GitHub - ydgros/UE_VS2022-17.9

1 Like

same problem,have you figured it out?

Yes, I had to switch back to previous version of Visual Studio 17.8.7 and rebuild the solution.

1 Like

This error caused by updating visual studio to 17.9, and the concret reason is the version of “MSVC”. So, just uninstall latest, and reinstall the previous. you also can remove it at “Microsoft Visual Studio\2022\Community\VC\Tools\MSVC”
image

1 Like