# Compile failed error 

**URL:** <https://forums.unrealengine.com/t/compile-failed-error/2337080>\
**Category:** C++\
**Tags:** error, unreal-engine\
**Created:** [February 16, 2025, 6:06pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080 "2025-02-16T18:06:22Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![CELES2941](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CELES2941](https://forums.unrealengine.com/u/CELES2941)\
**Post date:** [February 18, 2025, 3:52pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/21 "2025-02-18T15:52:10Z")

</div>

I deleted it and the license error disappeared but it still gives an error

 ![Error](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/f/78ff3dd56fd31a7fc07cca310fd8d79e99395283.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 18, 2025, 3:56pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/22 "2025-02-18T15:56:07Z")

</div>

Seeing as your compiler is throwing errors that a feature is undefined, it probably means you need to update your MSVC to a newer version. Run the visual studio installer and check the newer MSVC if you can and see if that helps with your compiler message.

Here is some documentation regarding versions of dependencies needed for unreal to work

> **[Setting Up Visual Studio Development Environment for C++ Projects in Unreal...](https://dev.epicgames.com/documentation/en-us/unreal-engine/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine)**
>
> Tips, tricks, and techniques for setting up Visual Studio to work with Unreal Engine.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/9/8e90c20ae5fc29b66294527837665c239d2fb199.png)

---

<div class="post-metadata">

**Author:** ![CELES2941](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CELES2941](https://forums.unrealengine.com/u/CELES2941)\
**Post date:** [February 18, 2025, 4:08pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/23 "2025-02-18T16:08:23Z")

</div>

Those are checked in me. Right now I am downloading other MSVC files

---

<div class="post-metadata">

**Author:** ![MagForceSeven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/magforceseven/32/906563_2.png) [@MagForceSeven](https://forums.unrealengine.com/u/MagForceSeven)\
**Post date:** [February 18, 2025, 4:10pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/24 "2025-02-18T16:10:01Z")

</div>

For 5.2 the release notes say you should be using the 17.4 14.34.31933 toolchain and Windows 10 SDK (10.0.18362.0). But you’re building 14.43.34808 and 10.0.22621.0.

You’ll need to install the older toolchains using the Visual Studio Installer:

> [@Unable to generate C++ project after upgrading to Visual Studio 17.12 \[blocking\]](https://forums.unrealengine.com/t/unable-to-generate-c-project-after-upgrading-to-visual-studio-17-12-blocking/2122722/33?page=2):
>
> Didn’t work for me either

---

<div class="post-metadata">

**Author:** ![CELES2941](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CELES2941](https://forums.unrealengine.com/u/CELES2941)\
**Post date:** [February 18, 2025, 4:15pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/25 "2025-02-18T16:15:51Z")

</div>

But my pc is windows 11. Should I still download windows 10 version ?

---

<div class="post-metadata">

**Author:** ![CELES2941](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CELES2941](https://forums.unrealengine.com/u/CELES2941)\
**Post date:** [February 18, 2025, 4:22pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/26 "2025-02-18T16:22:19Z")

</div>

And I couldn’t find the first setting. How should I search to find 17.4 14.34.31933 toolchain ?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 18, 2025, 4:28pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/27 "2025-02-18T16:28:16Z")

</div>

> [@MagForceSeven](#):
>
> (10.0.18362

You can get the SDK’s from the microsoft archive page

> **[Windows SDK and emulator archive](https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/)**
>
> Download and install previous Windows SDK and emulator releases for development on earlier versions of the Windows and Windows phone platforms.

There you have Windows 10 SDK, version 1903 (10.0.18362.1)

---

<div class="post-metadata">

**Author:** ![CELES2941](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CELES2941](https://forums.unrealengine.com/u/CELES2941)\
**Post date:** [February 18, 2025, 4:29pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/28 "2025-02-18T16:29:13Z")

</div>

I downloaded this inside from the Vs. Should I also download from this site or just from the Vs is enough ?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 18, 2025, 4:30pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/29 "2025-02-18T16:30:11Z")

</div>

VS should be enough. Though you may need to change the sdk version in the build configuration if you also have newer versions installed.

Ether in your engine or project

```auto
\UnrealEngine\Engine\Saved\UnrealBuildTool\BuildConfiguration.xml

```

or

```auto
Project name\Saved\UnrealBuildTool\BuildConfiguration.xml

```

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

```

I’m guessing the devkit folder is 10.0.18362.0 (it usually works with the version number but check the install path to be sure)

---

<div class="post-metadata">

**Author:** ![CELES2941](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CELES2941](https://forums.unrealengine.com/u/CELES2941)\
**Post date:** [February 18, 2025, 4:42pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/30 "2025-02-18T16:42:13Z")

</div>

The SDK version is correct but I still couldn’t change the toolchain version it’s still 14.43.34808 . Where can I change that ?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 18, 2025, 4:57pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/31 "2025-02-18T16:57:04Z")

</div>

> [@CELES2941](#):
>
> 14.43.3480

inside of `WindowsPlatform` tags you can use

```auto
<CompilerVersion>Your needed version</CompilerVersion>

```

Seems the toolchain can also be set in the config files (not sure if this isn’t dated info at this point though, haven’t gone back to 5.2 in forever)

> [@How to Specify Unreal Engine Source/Project Compiler Toolchain and SDK](https://forums.unrealengine.com/t/how-to-specify-unreal-engine-source-project-compiler-toolchain-and-sdk/1904818/2):
>
> You can specify Compiler, CompilerVersion, ToolchainVersion, WindowsSdkVersion etc. in config file of engine category. for example: In the \<PROJECT\_DIRECTORY\>/config/DefaultEngine.ini [/Script/WindowsTargetPlatform.WindowsTargetSettings] Compiler=Default CompilerVersion="Latest" ToolchainVersion="Latest" WindowsSdkVersion = "Latest" just replate “Latest” with any of your preferred version like CompilerVersion="14.13.26128"

---

<div class="post-metadata">

**Author:** ![CELES2941](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CELES2941](https://forums.unrealengine.com/u/CELES2941)\
**Post date:** [February 18, 2025, 5:04pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/32 "2025-02-18T17:04:15Z")

</div>

In my project there isn’t an engine file and when I open the config\> DefaultEngine.ini file there isn’t any compiler version

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/9/c590f76f447aeba0e8208374de0b1c833b2c2dfc.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 18, 2025, 5:07pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/33 "2025-02-18T17:07:02Z")

</div>

You’d need to add it by hand under

```auto
[/Script/WindowsTargetPlatform.WindowsTargetSettings]

```

in DefaultEngine.ini inside of the config folder inside of your project

So most likely

```auto
[/Script/WindowsTargetPlatform.WindowsTargetSettings]
CompilerVersion="14.34.31933"
ToolchainVersion="14.34.31933"

```

taking MagForceSeven’s advice into account regarding toolchain version

---

<div class="post-metadata">

**Author:** ![CELES2941](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CELES2941](https://forums.unrealengine.com/u/CELES2941)\
**Post date:** [February 18, 2025, 5:09pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/34 "2025-02-18T17:09:28Z")

</div>

These are the settings

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/d/55d788485fd238bfa6ca4ee157e56be63a5851c0.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 18, 2025, 5:11pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/35 "2025-02-18T17:11:08Z")

</div>

Yes and type in the toolchain and compiler 🙂 It’s an ini file that takes in parameters. Not all of the possibilities are present inside of the ini file, sometimes you have to add them, as long as it’s in line with the documentation it will work.

---

<div class="post-metadata">

**Author:** ![CELES2941](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CELES2941](https://forums.unrealengine.com/u/CELES2941)\
**Post date:** [February 18, 2025, 5:13pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/36 "2025-02-18T17:13:18Z")

</div>

> [@3dRaven](#):
>
> ```auto
> CompilerVersion="14.34.31933"
> ToolchainVersion="14.34.31933"
> 
> ```

I added it and now it’s giving me this error

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/f/fcf5eae69501b5a8cc0d534da5971453ad395348.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 18, 2025, 5:15pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/37 "2025-02-18T17:15:46Z")

</div>

Try deleting the intermediate, deriveddatacache and binaries. Regenerate the project files from the uproject right click, then launch the sln file in vs and try building.

If you have a project with c++ don’t run it via double clicking the uproject file.

Ok So I did a quick test. Made a fresh project in 5.2. No modifications to ini files or build config files  
just one change in the target files from 5\_1 to 5\_2 (also change in editor version of target file)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/6/ae6f90d7de0c54cc69b7c7ea80343e67f44c01fc.png)

Built it and worked out of the box

I’m guessing this is needed

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/5/b75edd2bba0d3d1cc1f23cd3a41d145cfc2ebf93.png)

---

<div class="post-metadata">

**Author:** ![CELES2941](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CELES2941](https://forums.unrealengine.com/u/CELES2941)\
**Post date:** [February 18, 2025, 7:54pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/38 "2025-02-18T19:54:30Z")

</div>

IT WORKED. Thanks for everything

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [February 18, 2025, 7:56pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/39 "2025-02-18T19:56:14Z")

</div>

Wow glad it helped. You went through quite the grueling process. Give yourself a reward and take a break 😉

---

<div class="post-metadata">

**Author:** ![CELES2941](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CELES2941](https://forums.unrealengine.com/u/CELES2941)\
**Post date:** [February 18, 2025, 7:57pm UTC](https://forums.unrealengine.com/t/compile-failed-error/2337080/40 "2025-02-18T19:57:59Z")

</div>

Thanks but it’ll all thanks to you and @MagForceSeven.

[Previous page](https://forums.unrealengine.com/t/compile-failed-error/2337080.md?page=1)

[Next page](https://forums.unrealengine.com/t/compile-failed-error/2337080.md?page=3)
