# \#c-build-fail

**URL:** https://forums.unrealengine.com/tag/c-build-fail/5005.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [UE4.24 C++ Unable to start a program UE4.exe](https://forums.unrealengine.com/t/ue4-24-c-unable-to-start-a-program-ue4-exe/461924)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a7f37d3c](https://forums.unrealengine.com/u/anonymous_user_a7f37d3c)\
**Replies:** 6\
**Last updated:** [January 6, 2024, 2:55pm UTC](https://forums.unrealengine.com/t/ue4-24-c-unable-to-start-a-program-ue4-exe/461924 "2024-01-06T14:55:34Z")

</div>

Hello, so I have a project and everything is running OK, I made some C++ classes I did the coding and everything is ok but I have an error when I start debugging. This is what it says Is there any way to fix this? I w…

---

## [Cannot compile c++ on a new project UE 5.1.1](https://forums.unrealengine.com/t/cannot-compile-c-on-a-new-project-ue-5-1-1/1334510)

<div class="topic-metadata">

**Author:** [@AndresAdarveO\_o](https://forums.unrealengine.com/u/AndresAdarveO_o)\
**Replies:** 2\
**Last updated:** [October 16, 2023, 8:55pm UTC](https://forums.unrealengine.com/t/cannot-compile-c-on-a-new-project-ue-5-1-1/1334510 "2023-10-16T20:55:33Z")

</div>

I’m trying to create a new c++ project with the FPS template, but when opening visual studio and trying to build the project im getting this list of errors. I just created it and didn’t modified anything yet. I’m using …

---

## [Why is Unreal freezing when compiling?](https://forums.unrealengine.com/t/why-is-unreal-freezing-when-compiling/467885)

<div class="topic-metadata">

**Author:** [@ProgrammingPaul](https://forums.unrealengine.com/u/ProgrammingPaul)\
**Replies:** 2\
**Last updated:** [May 25, 2023, 12:47pm UTC](https://forums.unrealengine.com/t/why-is-unreal-freezing-when-compiling/467885 "2023-05-25T12:47:09Z")

</div>

I just installed VS 2019. When I click on add a new C++ file while compiling it freezes at 86%. I tried to do a work around where I went directly to VS, and created C++ files there. But, VS is not recognizing some files …

---

## [Compile errors when creating folders](https://forums.unrealengine.com/t/compile-errors-when-creating-folders/478979)

<div class="topic-metadata">

**Author:** [@RailDoc](https://forums.unrealengine.com/u/RailDoc)\
**Replies:** 2\
**Last updated:** [May 24, 2022, 8:46am UTC](https://forums.unrealengine.com/t/compile-errors-when-creating-folders/478979 "2022-05-24T08:46:32Z")

</div>

Then I creating c++ class in “Source//” folder it creates and compiles with no errors. But then I’m trying to organize scripts and add script, for example, in “Source//Inventory”, it cannot compile anymore, .cpp …

---

## [Rebuild/Save broken project](https://forums.unrealengine.com/t/rebuild-save-broken-project/489809)

<div class="topic-metadata">

**Author:** [@Ganiester](https://forums.unrealengine.com/u/Ganiester)\
**Replies:** 11\
**Last updated:** [May 7, 2022, 2:11pm UTC](https://forums.unrealengine.com/t/rebuild-save-broken-project/489809 "2022-05-07T14:11:15Z")

</div>

Hi! I’ve spent almost week now trying to fix my broken unreal project but I cant seem to get it to work. I have managet to be able to start it up again in the editor but there still are some problems with the c++ parts. …

---

## [Implemetation of mqtt protocol](https://forums.unrealengine.com/t/implemetation-of-mqtt-protocol/429643)

<div class="topic-metadata">

**Author:** [@Thunderdoksa](https://forums.unrealengine.com/u/Thunderdoksa)\
**Replies:** 2\
**Last updated:** [April 27, 2022, 8:06am UTC](https://forums.unrealengine.com/t/implemetation-of-mqtt-protocol/429643 "2022-04-27T08:06:23Z")

</div>

I’m trying to implement the mqtt protocol in the unreal through this project: But, in the compile, I get these error message: C:\\■■■■■■\\UnrealMosquitto\\uemqtt\_packeged\\HostProject\\Plugins\\UEmqtt\\Source\\UEmqtt\\Public/…

---

## [UE-92876 Failure caused by more than public/private](https://forums.unrealengine.com/t/ue-92876-failure-caused-by-more-than-public-private/475590)

<div class="topic-metadata">

**Author:** [@Hunanbean](https://forums.unrealengine.com/u/Hunanbean)\
**Replies:** 1\
**Last updated:** [February 9, 2022, 8:36pm UTC](https://forums.unrealengine.com/t/ue-92876-failure-caused-by-more-than-public-private/475590 "2022-02-09T20:36:25Z")

</div>

This failure occurs if you attempt to create your class in any sub folder, existing or not. It is not limited to the Public/Private folder issue.

---

## [Error LNK2019](https://forums.unrealengine.com/t/error-lnk2019/490988)

<div class="topic-metadata">

**Author:** [@antojim6](https://forums.unrealengine.com/u/antojim6)\
**Replies:** 2\
**Last updated:** [November 18, 2021, 8:10am UTC](https://forums.unrealengine.com/t/error-lnk2019/490988 "2021-11-18T08:10:11Z")

</div>

Hello, I’m having a problem using an external library that a friend of mine coded externally to unreal engine. I have created a folder for the header files and another folder for the .lib files. I’m able to import the .…

---

## [Error C2071: 'uint8': illegal storage class](https://forums.unrealengine.com/t/error-c2071-uint8-illegal-storage-class/490036)

<div class="topic-metadata">

**Author:** [@Anonymous\_b9b50f95d2becd85446bc1dd4a8a3799](https://forums.unrealengine.com/u/Anonymous_b9b50f95d2becd85446bc1dd4a8a3799)\
**Replies:** 1\
**Last updated:** [October 21, 2021, 10:55pm UTC](https://forums.unrealengine.com/t/error-c2071-uint8-illegal-storage-class/490036 "2021-10-21T22:55:14Z")

</div>

I have the following problem when compiling a copy of the example project ActionRPG using UE4.26, Microsoft Visual Studio2019 14.29.30133: F:\\SDK\\Epic Games\\UE\_4.26\\Engine\\Source\\Runtime\\Core\\Public\\GenericPlatform/G…

---

## [How to install plugins from Github?](https://forums.unrealengine.com/t/how-to-install-plugins-from-github/477616)

<div class="topic-metadata">

**Author:** [@DeltaMike1010](https://forums.unrealengine.com/u/DeltaMike1010)\
**Replies:** 2\
**Last updated:** [August 26, 2021, 2:07am UTC](https://forums.unrealengine.com/t/how-to-install-plugins-from-github/477616 "2021-08-26T02:07:39Z")

</div>

I’m new to unreal, transitioning from Unity, and I’ve installed Unreal 4.24 from the launcher. I tried building from source too but somehow it was taking forever with “GenerateProjectFiles.bat” process. I wanted to inst…

---

## [How to fix c++ compilation errors](https://forums.unrealengine.com/t/how-to-fix-c-compilation-errors/428585)

<div class="topic-metadata">

**Author:** [@MuhammadMoizulhaq](https://forums.unrealengine.com/u/MuhammadMoizulhaq)\
**Replies:** 2\
**Last updated:** [August 23, 2021, 8:14am UTC](https://forums.unrealengine.com/t/how-to-fix-c-compilation-errors/428585 "2021-08-23T08:14:38Z")

</div>

how to fix “Successfully added class ‘MyActorComponent’, however you must recompile the ‘practice’ module before it will appear in the Content Browser. Failed to generate project files.” this error.

---

## [Editor crashes immediately after opening/creating project](https://forums.unrealengine.com/t/editor-crashes-immediately-after-opening-creating-project/486317)

<div class="topic-metadata">

**Author:** [@dosslossl](https://forums.unrealengine.com/u/dosslossl)\
**Replies:** 1\
**Last updated:** [July 20, 2021, 7:23am UTC](https://forums.unrealengine.com/t/editor-crashes-immediately-after-opening-creating-project/486317 "2021-07-20T07:23:53Z")

</div>

I installed VS Build Tools and everything outside of Unrealengine seems to work (i can build c++ files without problems etc.), but when i try to open/create a c++ based project in Unrealengine, it crashes immediately. I …

---

## [\[Linux\]Unreal Engine 4.26.2 Not creating C++ projects](https://forums.unrealengine.com/t/linux-unreal-engine-4-26-2-not-creating-c-projects/483390)

<div class="topic-metadata">

**Author:** [@Holo74](https://forums.unrealengine.com/u/Holo74)\
**Replies:** 1\
**Last updated:** [June 25, 2021, 11:40am UTC](https://forums.unrealengine.com/t/linux-unreal-engine-4-26-2-not-creating-c-projects/483390 "2021-06-25T11:40:42Z")

</div>

I’m using Linux Mint. I compiled the Unreal Engine from the git page and used the Linux Quick Start Guide page to assist the installation. I’m also using Visual Studio Code for my IDE. I’m having a problem where when …

---

## [AddDynamic not working with OnPerceptionUpdated](https://forums.unrealengine.com/t/adddynamic-not-working-with-onperceptionupdated/483686)

<div class="topic-metadata">

**Author:** [@M.AbdullahSultan](https://forums.unrealengine.com/u/M.AbdullahSultan)\
**Replies:** 2\
**Last updated:** [May 21, 2021, 4:48pm UTC](https://forums.unrealengine.com/t/adddynamic-not-working-with-onperceptionupdated/483686 "2021-05-21T16:48:31Z")

</div>

Add dynamic is not working with OnPerceptionUpdated, it throws weird build error I can’t figure out Kindly point out problem and suggest solution The .h File: #pragma once #include "CoreMinimal.h" #include "AIContr…

---

## [\[4.26.1\] Opening C++ Windows Projects in Linux Always Fails](https://forums.unrealengine.com/t/4-26-1-opening-c-windows-projects-in-linux-always-fails/481000)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0fcc26761](https://forums.unrealengine.com/u/anonymous_user_0fcc26761)\
**Replies:** 6\
**Last updated:** [March 28, 2021, 11:07pm UTC](https://forums.unrealengine.com/t/4-26-1-opening-c-windows-projects-in-linux-always-fails/481000 "2021-03-28T23:07:14Z")

</div>

I’m working on a game devlopment team for a non-profit project, and am rather new to Unreal and C++, myself. Most of my teammates use Windows, and I use Linux, and am partly responsible for ensuring that the project wil…

---

## [Strange solution build error](https://forums.unrealengine.com/t/strange-solution-build-error/476872)

<div class="topic-metadata">

**Author:** [@ArKeid0s](https://forums.unrealengine.com/u/ArKeid0s)\
**Replies:** 0\
**Last updated:** [January 11, 2021, 4:07am UTC](https://forums.unrealengine.com/t/strange-solution-build-error/476872 "2021-01-11T04:07:39Z")

</div>

Hello I am using onedrive to store my project (I am migrating to github since this problem) and yesterday i deleted accidently a file in my build folder so i restored it but it broke everything. I tried to delete my inte…

---

## [Can't Build UE4 files](https://forums.unrealengine.com/t/cant-build-ue4-files/460134)

<div class="topic-metadata">

**Author:** [@Aphix](https://forums.unrealengine.com/u/Aphix)\
**Replies:** 2\
**Last updated:** [January 10, 2020, 9:48pm UTC](https://forums.unrealengine.com/t/cant-build-ue4-files/460134 "2020-01-10T21:48:51Z")

</div>

I was editing some code, and all of the sudden, I got a bunch of error codes. I checked all the header files and include statements, and everything seems intact. I can’t open my file, even with the latest saved working…

---

## [Can't copmile with Visual Studio from UE4 launcher](https://forums.unrealengine.com/t/cant-copmile-with-visual-studio-from-ue4-launcher/440778)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_acae33df](https://forums.unrealengine.com/u/anonymous_user_acae33df)\
**Replies:** 0\
**Last updated:** [January 7, 2019, 2:24pm UTC](https://forums.unrealengine.com/t/cant-copmile-with-visual-studio-from-ue4-launcher/440778 "2019-01-07T14:24:33Z")

</div>

I have VS 2017 and UE4.17 . When I create a new project with C++ and press “create project”, it starts loading and tries to start Visual Studio , but after it shows a big error window like that I tried to find answer…

---

## [Play Sound Cue like in the Shooter game example](https://forums.unrealengine.com/t/play-sound-cue-like-in-the-shooter-game-example/438657)

<div class="topic-metadata">

**Author:** [@Bitwaker](https://forums.unrealengine.com/u/Bitwaker)\
**Replies:** 4\
**Last updated:** [December 1, 2018, 12:20pm UTC](https://forums.unrealengine.com/t/play-sound-cue-like-in-the-shooter-game-example/438657 "2018-12-01T12:20:22Z")

</div>

Actually it seems the problem was that I forgot to include “Sound/SoundCue.h”

---

## [There is build error when editor opened](https://forums.unrealengine.com/t/there-is-build-error-when-editor-opened/304188)

<div class="topic-metadata">

**Author:** [@XAfgun\_1](https://forums.unrealengine.com/u/XAfgun_1)\
**Replies:** 1\
**Last updated:** [September 6, 2018, 12:14pm UTC](https://forums.unrealengine.com/t/there-is-build-error-when-editor-opened/304188 "2018-09-06T12:14:22Z")

</div>

There is build error when editor opened. If I close editor, it will be build. Error 28 error : Failed to produce item: C:\\Users\\AhmetFaruk\\Desktop\\TenekurOffline\\Binaries\\Win64\\UE4Editor-TenekurOffline.pdb C:\\Users\\Ahme…

---

## [Fails to build New Projects with C++](https://forums.unrealengine.com/t/fails-to-build-new-projects-with-c/425942)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e6c1b23b1](https://forums.unrealengine.com/u/anonymous_user_e6c1b23b1)\
**Replies:** 1\
**Last updated:** [May 29, 2018, 5:59pm UTC](https://forums.unrealengine.com/t/fails-to-build-new-projects-with-c/425942 "2018-05-29T17:59:48Z")

</div>

When I try to create a new project I get the following error. After opening it in VS and attempting to compile it I get these errors when building the source with “Development Editor|Win64”. Severity Code Descriptio…

---

## [UAT build error when c++ module contains only unreferenced APIs](https://forums.unrealengine.com/t/uat-build-error-when-c-module-contains-only-unreferenced-apis/423478)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_831d0093](https://forums.unrealengine.com/u/anonymous_user_831d0093)\
**Replies:** 0\
**Last updated:** [April 24, 2018, 5:52pm UTC](https://forums.unrealengine.com/t/uat-build-error-when-c-module-contains-only-unreferenced-apis/423478 "2018-04-24T17:52:47Z")

</div>

Repro: UE4.19.1 (built from source) Create a default BP ThirdPerson project. Load in Editor. Confirm you can play. Quit. Build from Command line for Win64 Release or Development, for example… “%\_UnrealAutomatio…

---

## [Including exprtk requires compiler setting /GR](https://forums.unrealengine.com/t/including-exprtk-requires-compiler-setting-gr/390448)

<div class="topic-metadata">

**Author:** [@Roi\_Danton](https://forums.unrealengine.com/u/Roi_Danton)\
**Replies:** 2\
**Last updated:** [February 1, 2018, 7:31am UTC](https://forums.unrealengine.com/t/including-exprtk-requires-compiler-setting-gr/390448 "2018-02-01T07:31:49Z")

</div>

ExprTk is a lexer, parser and evaluator for equations. I’ve included it in my project and get two compiler errors. First one is regarding the macro verify (used in UE4 and exprtk), which I could fix by renaming this mac…

---

## [Character class C++ error](https://forums.unrealengine.com/t/character-class-c-error/416035)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8c99c8a1](https://forums.unrealengine.com/u/anonymous_user_8c99c8a1)\
**Replies:** 0\
**Last updated:** [January 31, 2018, 2:53pm UTC](https://forums.unrealengine.com/t/character-class-c-error/416035 "2018-01-31T14:53:26Z")

</div>

Hi! I’m quite new to Unreal Engine and C++. I’m following the Twin Stick Shooter tutorial (link:text) and I’ve got problems with building the character class code. I think it’s because I’m using different version of UE4…

---

## [Can't create C++ Project but can create Blueprint Project](https://forums.unrealengine.com/t/cant-create-c-project-but-can-create-blueprint-project/379942)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4d85be51](https://forums.unrealengine.com/u/anonymous_user_4d85be51)\
**Replies:** 9\
**Last updated:** [January 2, 2017, 3:27pm UTC](https://forums.unrealengine.com/t/cant-create-c-project-but-can-create-blueprint-project/379942 "2017-01-02T15:27:46Z")

</div>

Hey all! So I’ve been working with blueprint projects for a little over a year now, but I’ve yet to dabble in C++ projects. When creating my first C++ project I got an error stating that “The project could not be compil…

---

## [Problem compile new c++ unreal project UE 4.12 error C3872 '0xac' and fatal error C1021](https://forums.unrealengine.com/t/problem-compile-new-c-unreal-project-ue-4-12-error-c3872-0xac-and-fatal-error-c1021/363027)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_bde9bf65](https://forums.unrealengine.com/u/anonymous_user_bde9bf65)\
**Replies:** 0\
**Last updated:** [July 5, 2016, 4:16pm UTC](https://forums.unrealengine.com/t/problem-compile-new-c-unreal-project-ue-4-12-error-c3872-0xac-and-fatal-error-c1021/363027 "2016-07-05T16:16:41Z")

</div>

Hello guys, i am trying to create a new project with unreal engine but i get this errors: error C3872 ‘0xac’ and fatal error C1021 like in the picture attatched. Currentley am i am using visual studio 2015 with Update …

---

## [Project has stopped compiling](https://forums.unrealengine.com/t/project-has-stopped-compiling/359622)

<div class="topic-metadata">

**Author:** [@lordGoldemort](https://forums.unrealengine.com/u/lordGoldemort)\
**Replies:** 1\
**Last updated:** [June 4, 2016, 5:42pm UTC](https://forums.unrealengine.com/t/project-has-stopped-compiling/359622 "2016-06-04T17:42:46Z")

</div>

Apropos of nothing, my game project now fails to build in Visual Studio. I am getting multiple errors building the engine code. I’ve tried restarting VS, restarting the PC, deleting the solution / intermediate files and …

---

## [How can I set the VS include path?](https://forums.unrealengine.com/t/how-can-i-set-the-vs-include-path/338699)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_9956fc2a](https://forums.unrealengine.com/u/anonymous_user_9956fc2a)\
**Replies:** 1\
**Last updated:** [November 16, 2015, 10:02pm UTC](https://forums.unrealengine.com/t/how-can-i-set-the-vs-include-path/338699 "2015-11-16T22:02:54Z")

</div>

I know how to set the include path, through Project-\>Properties. But it does not work: I want VS to take the header files from the Android-ndk, because android/sensor.h needs a different sys/types.h. I already deleted th…

---

## [Adding a UFUNCTION to my UObject Plugin causes build to fail.](https://forums.unrealengine.com/t/adding-a-ufunction-to-my-uobject-plugin-causes-build-to-fail/325265)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0d53d466](https://forums.unrealengine.com/u/anonymous_user_0d53d466)\
**Replies:** 8\
**Last updated:** [July 24, 2015, 1:05pm UTC](https://forums.unrealengine.com/t/adding-a-ufunction-to-my-uobject-plugin-causes-build-to-fail/325265 "2015-07-24T13:05:39Z")

</div>

Am I not able to have UFunction capabilities with my plugin? The moment I delete the UFUNCTION it build perfectly fine. The error I am getting: 25\>ERROR : UBT error : Failed to produce item: C:\\Unreal Source\\Unreal 7-13…

---

## [Jump to compiler-error not working from editor](https://forums.unrealengine.com/t/jump-to-compiler-error-not-working-from-editor/318341)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_82a61a3e](https://forums.unrealengine.com/u/anonymous_user_82a61a3e)\
**Replies:** 1\
**Last updated:** [June 23, 2015, 3:13pm UTC](https://forums.unrealengine.com/t/jump-to-compiler-error-not-working-from-editor/318341 "2015-06-23T15:13:51Z")

</div>

Hi, if I compile a c++ gameplugin from the editor, the compiler-log shows the exact line where an error occurs. However, if I click the error, nothing happens. Is this correct behavior ? AFAIK visual studio should ge…

[Next page](https://forums.unrealengine.com/tag/c-build-fail/5005.md?match_all_tags=true&page=1&tags%5B%5D=c-build-fail)
