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

**URL:** <https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002>\
**Category:** C++\
**Tags:** c-c, c-class-wizard, c-and-bluepri, c-custommeshcomponen, c-and-blueprint, c-error, c-class, c-custom-shape, c-programming, c-cone-shape, unreal-engine, editor, CPP, question\
**Created:** [November 20, 2024, 4:30pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002 "2024-11-20T16:30:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![RougueBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RougueBear](https://forums.unrealengine.com/u/RougueBear)\
**Post date:** [November 20, 2024, 4:30pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/1 "2024-11-20T16:30:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sklor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sklor/32/1074675_2.png) [@Sklor](https://forums.unrealengine.com/u/Sklor)\
**Post date:** [November 20, 2024, 6:37pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/2 "2024-11-20T18:37:19Z")

</div>

Have you tried running an older version of UE editor?

---

<div class="post-metadata">

**Author:** ![RougueBear](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RougueBear](https://forums.unrealengine.com/u/RougueBear)\
**Post date:** [November 20, 2024, 6:45pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/3 "2024-11-20T18:45:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Dnelband](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dnelband](https://forums.unrealengine.com/u/Dnelband)\
**Post date:** [November 21, 2024, 8:50pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/4 "2024-11-21T20:50:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![UnivexNate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnivexNate](https://forums.unrealengine.com/u/UnivexNate)\
**Post date:** [November 22, 2024, 3:08am UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/5 "2024-11-22T03:08:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Joser\_slipgate](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joser_slipgate/32/867837_2.png) [@Joser\_slipgate](https://forums.unrealengine.com/u/Joser_slipgate)\
**Post date:** [November 22, 2024, 4:35pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/6 "2024-11-22T16:35:31Z")

</div>

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](https://forums.unrealengine.com/t/ue5-3-cannot-build-project/2133106). Downgrading following the advice in this answer [How to install specific version of Visual Studio 2022 - Stack Overflow](https://stackoverflow.com/a/78637995) solved my issue!

---

<div class="post-metadata">

**Author:** ![ShankarArun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShankarArun](https://forums.unrealengine.com/u/ShankarArun)\
**Post date:** [November 23, 2024, 10:25pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/7 "2024-11-23T22:25:29Z")

</div>

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](https://forums.unrealengine.com/t/ue5-3-cannot-build-project/2133106/3)

---

<div class="post-metadata">

**Author:** ![P4R4N01C0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@P4R4N01C0](https://forums.unrealengine.com/u/P4R4N01C0)\
**Post date:** [December 12, 2024, 1:06am UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/8 "2024-12-12T01:06:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Galvanicus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Galvanicus](https://forums.unrealengine.com/u/Galvanicus)\
**Post date:** [December 19, 2024, 3:51pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/9 "2024-12-19T15:51:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Bjaze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bjaze](https://forums.unrealengine.com/u/Bjaze)\
**Post date:** [January 5, 2025, 2:11am UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/10 "2025-01-05T02:11:20Z")

</div>

You’re great, I had to move to new pc and I couldn’t build my solution for almost a day.

I hate these things happening

---

<div class="post-metadata">

**Author:** ![PhilippeMinuit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeMinuit](https://forums.unrealengine.com/u/PhilippeMinuit)\
**Post date:** [January 21, 2025, 4:59pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/11 "2025-01-21T16:59:16Z")

</div>

What did you end up writing after DefaultBuildSettings = BuildSettingsVersion.Latest as **LATEST**?

---

<div class="post-metadata">

**Author:** ![Galvanicus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Galvanicus](https://forums.unrealengine.com/u/Galvanicus)\
**Post date:** [January 22, 2025, 3:44pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/12 "2025-01-22T15:44:04Z")

</div>

Nothing else. Just replace the version to “Latest”, save and compile.

---

<div class="post-metadata">

**Author:** ![Tobias\_Tobasco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tobias_tobasco/32/1194646_2.png) [@Tobias\_Tobasco](https://forums.unrealengine.com/u/Tobias_Tobasco)\
**Post date:** [January 24, 2025, 3:04pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/13 "2025-01-24T15:04:13Z")

</div>

Thank you, worked straight away!

---

<div class="post-metadata">

**Author:** ![hesa656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hesa656](https://forums.unrealengine.com/u/hesa656)\
**Post date:** [January 24, 2025, 4:14pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/14 "2025-01-24T16:14:20Z")

</div>

If in `Unreal Projects\ProjectName\Intermediate\Source\ProjectName.Target.cs` you already have `DefaultBuildSettings = BuildSettingsVersion.Latest;` **by default** , then just install `MSVC v143 v14.38 17.8 x64/x86` in Visual Studio Installer (you need to manually search for this - just copy and paste).

---

<div class="post-metadata">

**Author:** ![FyreNight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FyreNight](https://forums.unrealengine.com/u/FyreNight)\
**Post date:** [February 3, 2025, 9:17pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/15 "2025-02-03T21:17:27Z")

</div>

New solution here. (Combination of above)

Not fully sure if the above solution of setting DefaultBuildSettings to the latest helped in my solution or not but I will note that I did add that setting to my GameName.Target.cs file.

The solution for me was going into Visual Studio installer, modifying my version to only use MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.38-17.8) AND modifying my build configuration located at "%appdata%\Unreal Engine\UnrealBuildTool"

For some reason even though I only had MSVC v14.38 unreals build tool wasn’t trying to use said version so I explicitly added it to my buildconfiguration.xml (file contents below)

\<?xml version="1.0" encoding="utf-8" ?\> 14.38.33144 VisualStudio2022 14.38.33144 

\*\*Note: if generating sln throws an error afterwards like “Unable to find valid 14.38.32919 C++ toolchain for VisualStudio2022 x64” check what version you have installed.

Somewhere in that little unreal engine window that pops up when you generate sln file should mention what version you have installed.

Example, originally I thought installed version of MSVC v14.38.32919 was installed, but then I saw the above error\*\*

Reading through sln error log I saw my version listed was \* C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130  
(Family=14.38.33130, FamilyRank=4, Version=14.38.33144, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)

That’s how I verified my version

Sorry for a lot of info but that was my process and I want to leave as many details for anyone who comes across my specific issue.

---

<div class="post-metadata">

**Author:** ![Arc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Arc](https://forums.unrealengine.com/u/Arc)\
**Post date:** [February 11, 2025, 3:27pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/16 "2025-02-11T15:27:58Z")

</div>

Thanks!

For anyone who finds this post afterwards, the above post is correct. I had to do the following:

Modify the `BuildConfiguration.xml` at `%AppData%\Unreal Engine\UnrealBuildTool` to have the compiler version set to 14.38.33144

```auto
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
    <WindowsPlatform>
        <CompilerVersion>14.38.33144</CompilerVersion>
    </WindowsPlatform>
</Configuration>

```

Cheers

---

<div class="post-metadata">

**Author:** ![j05hau](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/j05hau/32/1130911_2.png) [@j05hau](https://forums.unrealengine.com/u/j05hau)\
**Post date:** [February 13, 2025, 1:14am UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/17 "2025-02-13T01:14:06Z")

</div>

That’s just… wow. Thanks guys for posting this. The explicit definition of the compiler version worked for me.

---

<div class="post-metadata">

**Author:** ![\_1117](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_1117/32/710746_2.png) [@\_1117](https://forums.unrealengine.com/u/_1117)\
**Post date:** [February 19, 2025, 5:47pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/18 "2025-02-19T17:47:10Z")

</div>

The problem here is that visual studio installer **forces** me to download the latest version of MSVC by removing the unreal engine components for visual studio automatically if I remove the latest MSVC, and if I check them again it toggles the latest MSVC,  
I found that very annoying and I really want help. 😭😭

---

<div class="post-metadata">

**Author:** ![\_1117](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_1117/32/710746_2.png) [@\_1117](https://forums.unrealengine.com/u/_1117)\
**Post date:** [February 19, 2025, 6:09pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/19 "2025-02-19T18:09:34Z")

</div>

EDIT : DONT TRY IT, this is not the perfect solution, the best solution comes below 👇👇  
Perfect, I followed some of your answer and thanks god the problem gone, I checked both 14.38 and the latest MSVC versions, then I typed the code that you have provided in your answer about UnrealBuildTool, when I rebuild it the problem was solved and zero errors, thank you and thanks the replied @FyreNight,

Anyone face the same error you can follow down these steps:

If _visual studio installer_ **forces** you to download the latest version of MSVC, don’t remove it instead toggle the needed version of MSVC “14.38.33144 in this case” then _modify the BuildConfiguration.xml at %AppData%\Unreal Engine\UnrealBuildTool to have the compiler version set to 14.38.33144_

```auto
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
    <WindowsPlatform>
        <CompilerVersion>14.38.33144</CompilerVersion>
    </WindowsPlatform>
</Configuration>

```

if the problem isn’t solved check the problems of others above.  
Thank you

---

<div class="post-metadata">

**Author:** ![SCS\_Kwame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SCS\_Kwame](https://forums.unrealengine.com/u/SCS_Kwame)\
**Post date:** [February 27, 2025, 3:23am UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/20 "2025-02-27T03:23:06Z")

</div>

Thanks a lot! This did the trick for me. I was having the same problem at the OP, except I’m on Unreal Engine 5.21.

[Next page](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002.md?page=2)
