Hello. I’m a bit desperate since i’ve tried everything and there’s really not info at all about this error on internet. I have installed everything related to .NET framework, Windows 10 SDK and MSVC on the Visual Studio Installer, and I keep getting this error every time I build the source code:
Can’t open include file: ‘typeinfo.h’: No such file or directory
Please I need some guidance because I just can’t find any solution, and I’ve read a couple topics on internet about this and all they say are “install MSVC” and “install .NET”
Uninstalled the v14.23 toolchain and installed the v14.22. But for some reason VS tries to still build with v14.23 which causes everything to fail. Can you be more clear on exactly how we are to use v14.22 instead?
As another user has mentioned, this issue happens when you have the latest MSVC toolset installed. At the time of this answer, the newest versoin is v14.23. Starting with this version and in future versions, typeinfo.h will be replaced with simply typeinfo. So if you are using a version of MSVC greater than 14.22, then just go to your PSAllocator.h file and change typeinfo.h to typeinfo. So in Unreal Engine version 4.23.0, file PsAllocator.h lines 38-44, here is what they would look like before: