# Cannot compile c++ on a new project UE 5.1.1

**URL:** <https://forums.unrealengine.com/t/cannot-compile-c-on-a-new-project-ue-5-1-1/1334510>\
**Category:** C++\
**Tags:** c-build-fail, unreal-engine, UE5, Visual-Studio, question\
**Created:** [October 16, 2023, 4:02pm UTC](https://forums.unrealengine.com/t/cannot-compile-c-on-a-new-project-ue-5-1-1/1334510 "2023-10-16T16:02:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndresAdarveO\_o](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AndresAdarveO\_o](https://forums.unrealengine.com/u/AndresAdarveO_o)\
**Post date:** [October 16, 2023, 4:02pm UTC](https://forums.unrealengine.com/t/cannot-compile-c-on-a-new-project-ue-5-1-1/1334510/1 "2023-10-16T16:02:47Z")

</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 VS 2022 17.7.5

 ![errores](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/6/0b6cad69831700d0695200e98958d98d0886a3cc.png)

Does anyone know what should i do in order to get a successful build?

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [October 16, 2023, 5:00pm UTC](https://forums.unrealengine.com/t/cannot-compile-c-on-a-new-project-ue-5-1-1/1334510/2 "2023-10-16T17:00:29Z")

</div>

Those 14 errors are all visual studio IntelliSense Errors (Error start with an E) and can be ignored. Use the dropdown Build - IntelliSense and set it to Build only.

The Source code for making a build only worry about Errors with the Error code C which is a Compile Error or LNK which is a Linker Error.

The actual Error you have is shown in the output log (MSB errors are MSBuild Errors which is the tool that executes all the steps necessary to produce a new build )  
You probably have the Editor running in the background so close it and build again.

---

<div class="post-metadata">

**Author:** ![AndresAdarveO\_o](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AndresAdarveO\_o](https://forums.unrealengine.com/u/AndresAdarveO_o)\
**Post date:** [October 16, 2023, 8:55pm UTC](https://forums.unrealengine.com/t/cannot-compile-c-on-a-new-project-ue-5-1-1/1334510/3 "2023-10-16T20:55:33Z")

</div>

Yep, that worked perfectly, thank you so much. I Just deleted the intermediate, binaries, etc. Opened just the visual studio without opening the editor and had a successful build.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [November 15, 2023, 8:56pm UTC](https://forums.unrealengine.com/t/cannot-compile-c-on-a-new-project-ue-5-1-1/1334510/4 "2023-11-15T20:56:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
