# Always have to recompile my C++ project

**URL:** <https://forums.unrealengine.com/t/always-have-to-recompile-my-c-project/771750>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, CPP, question\
**Created:** [February 16, 2023, 12:07am UTC](https://forums.unrealengine.com/t/always-have-to-recompile-my-c-project/771750 "2023-02-16T00:07:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ludokun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ludokun](https://forums.unrealengine.com/u/ludokun)\
**Post date:** [February 16, 2023, 12:07am UTC](https://forums.unrealengine.com/t/always-have-to-recompile-my-c-project/771750/1 "2023-02-16T00:07:27Z")

</div>

Hello everyone,

Following my recent question about unreal crashing when using static ConstructorHelpers::FObjectFinder, I’ve discovered a new issue with all my C++ projects.

As a beginner in Unreal Engine, I’ve started learning from the dev community and documentation site.  
Right now I’m doing C++ Programming Tutorial and done the following tutorial so far (using UE5.1.1 on Windows10 without source control):

- Game-Controllerd Cameras
- Components and Collision
- Programming Quick Start
- Player-Controlled Cameras

Except the Components and Collision tutorial, I didn’t have any issue while doing the tutorial.  
However I found out that everytime I open those C++ project, all my classes doesn’t appear in the content browser and class instances that I put in the level disappeared.  
I always have to compile (using Live Coding) for my classes to reappear in the content browser (instances in my level doesn’t reappear though).

For all my classes that I’ve added code to the constructor (CreateDefaultSuboject\<\>), in the message log, I have the following message for each object I’ve created:

> CreateExport: Failed to load Outer for resource…

Could you please tell me what’s happening?  
I’ve done some research and found similar unresolved post:

> [@Warning CreateExport: Failed to load Outer for resource ... for many blueprints](https://forums.unrealengine.com/t/warning-createexport-failed-to-load-outer-for-resource-for-many-blueprints/365898):
>
> Hi, we just run into a problem of one of my team mates machine. On that machine we get the warning “Warning CreateExport: Failed to load Outer for resource …” a lot (\<800) in many blueprints. And after that the editor is crashing most times. I copied his project folder over to my machine and there is everything running fine. We reinstalled the launcher and unreal as well as completely deleted and force synced the whole project from P4. But nothing is helping. On all other team machines in our t…

Seams it still happen with Unreal 5.1.1

I really thank you in advance for your help

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [February 16, 2023, 12:10am UTC](https://forums.unrealengine.com/t/always-have-to-recompile-my-c-project/771750/2 "2023-02-16T00:10:18Z")

</div>

Hi ludokun,

LiveCoding sometimes does that. shut down Unreal and your project, load it from Visual Studio and build it from there, then run it - that often fixes things.

---

<div class="post-metadata">

**Author:** ![ludokun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ludokun](https://forums.unrealengine.com/u/ludokun)\
**Post date:** [February 16, 2023, 12:33am UTC](https://forums.unrealengine.com/t/always-have-to-recompile-my-c-project/771750/3 "2023-02-16T00:33:15Z")

</div>

Hello  
Thank you very much for your reply.  
Closing Unreal, open the visual studio solution, build and run (Local Windows Debugger) did the trick.  
Thank you very much for your help.  
I understand now why in the “C++ for blueprinters” tutorial, the author was always restarting Unreal Engine after editing C++ class.

---

<div class="post-metadata">

**Author:** ![duchamp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duchamp/32/630690_2.png) [@duchamp](https://forums.unrealengine.com/u/duchamp)\
**Post date:** [October 19, 2024, 6:03am UTC](https://forums.unrealengine.com/t/always-have-to-recompile-my-c-project/771750/4 "2024-10-19T06:03:02Z")

</div>

> [@RecourseDesign](#):
>
> LiveCoding sometimes does that. shut down Unreal and your project, load it from Visual Studio and build it from there, then run it - that often fixes things.

That solved this issue also for me with UE 5.5. I didn’t experience that issue before.

---

<div class="post-metadata">

**Author:** ![AnanasikDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnanasikDev](https://forums.unrealengine.com/u/AnanasikDev)\
**Post date:** [March 27, 2025, 12:08am UTC](https://forums.unrealengine.com/t/always-have-to-recompile-my-c-project/771750/5 "2025-03-27T00:08:51Z")

</div>

I am using UE5.5 and I have same problem that each time I open my UE project there is no C++ Classes directory and no C++ classes are displayed, but if I hit the hot reload button it does show up. I did try to close the editor and rebuilt the entire solution from Visual Studio, didn’t help. I don’t understand why, the only thing I found online is that I should build from VS but it doesn’t seem to help anyhow.

---

<div class="post-metadata">

**Author:** ![AnanasikDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnanasikDev](https://forums.unrealengine.com/u/AnanasikDev)\
**Post date:** [April 1, 2025, 8:27pm UTC](https://forums.unrealengine.com/t/always-have-to-recompile-my-c-project/771750/6 "2025-04-01T20:27:55Z")

</div>

I figured this out! I found out that I was using the wrong build configuration. I switched to Development in VS, built and it all worked:) Only after that I looked into project preferences in UE Editor and found out there was a dropdown to change the build configuration. Apparently if the one set in UE and the one set in VS are different they are incompatible, which makes sense but is very much not obvious. So now when I open the Editor the C++ files are there and no issues whatsoever:)
