# Compile Fails with "Exited with code 1" (Perforce)

**URL:** <https://forums.unrealengine.com/t/compile-fails-with-exited-with-code-1-perforce/2327556>\
**Category:** C++\
**Tags:** unreal-engine, crash, Source-Control, Perforce, question, CPP\
**Created:** [February 11, 2025, 2:51pm UTC](https://forums.unrealengine.com/t/compile-fails-with-exited-with-code-1-perforce/2327556 "2025-02-11T14:51:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BioFrost.in](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BioFrost.in](https://forums.unrealengine.com/u/BioFrost.in)\
**Post date:** [February 11, 2025, 2:51pm UTC](https://forums.unrealengine.com/t/compile-fails-with-exited-with-code-1-perforce/2327556/1 "2025-02-11T14:51:04Z")

</div>

I’m using **Unreal Engine** with **Perforce** for version control. When I compile my project in **Visual Studio** and run it with **Ctrl + F5** , I get the error exited with 1(0x1)

However:

- The **build succeeds** without errors.
- My **code changes don’t apply** in the game.
- If I try to **Compile on the Fly** in Unreal Engine, it also fails.

#### **What I’ve Tried:**

✅ Checked out all necessary files in **Perforce** before compiling.  
✅ Used **Clean Solution** and then **Rebuild** in Visual Studio.  
✅ Right-clicked the `.uproject` file → **Generate Visual Studio project files**.  
✅ Deleted `Binaries`, `Intermediate`, and `Saved` folders, then recompiled.  
✅ Made sure **Perforce file permissions** allow modifications.  
✅ Restarted **Visual Studio** and **Unreal Engine** multiple times.

#### **Any Ideas?**

Is this a Perforce-related issue? Do I need to manually check out any specific files before compiling? Any help would be appreciated!
