Can't compile 5.4 Projects anymore, I need help.

So a while back I started getting this message from the engine whenever I tried creating a new project in unreal engine 5.4.

C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4668: ‘__has_feature’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: unexpected tokens following preprocessor directive - expected a newline
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: 32.52 seconds
Total execution time: 52.64 seconds

I’m not sure what the message was about since it seemed to do with code I haven’t touched. This all started happening after I tried to update my tool chain (vs and rider). Fine. Maybe I messed that up. Fast forward after days of trying to get my set up back to a working state I decide to reinstall everything. (Rider VS and Unreal.) no dice. So I wipe my entire pc and reinstall everything. I thought for sure that would be the silver bullet since that would set me back to square one, but alas when I opened up UE5.4 this morning and tried to create a new project I got this message again.

I’m really at a loss here. I know it’s gonna be something silly like a check box I need to hit, but can someone please help me? I don’t know what to do anymore. I’ve tried asking chat, but it doesn’t give any helpful advice.

3 Likes

Have you tried running an older version of UE editor?

I think I figured it out. it was an issue with the visual studio components I’d downloaded . I was using the wrong MSVC version. I needed 14.38 but by default visual studios will try to give you latest version.

1 Like

can you please explain what you did to fix this issue? im not sure i understand just from your solution comment… thanks in advance

Can you give a screen or the entire name of the MSCV component you’ve installed pls ?

For me the case was that I updated VS 2022 and it stopped working. After some searching, the following topic popped up: UE5.3 cannot build project. Downgrading following the advice in this answer How to install specific version of Visual Studio 2022 - Stack Overflow solved my issue!

I think just downgrading MSVC to 14.38 is sufficient, if you update the build configuration xml file as indicated in this reply: UE5.3 cannot build project - #3 by villinx

@UnivexNate , open your visual studio 2022 and installed missed componentes, one windows will apeear suggestnig install uniinstalled components, so install and rebuild.

Since this is a hit on google, for anyone else looking, don’t bother with reinstalling modules and such.
Go to your project.target.cs file, usually in the source folder and get the file.
In it, set the DefaultBuildSettings = BuildSettingsVersion.Latest;
instead of V2, V3, V4, V5, etc.

I wasted over a day reinstalling VS 2022, MSVC and playing with a bunch of nonsense.
This will fix it.

Try it.

1 Like