# Can't Open C++ when trying to start new project, but can open blueprint just fine

**URL:** <https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [September 9, 2021, 3:53am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726 "2021-09-09T03:53:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 9, 2021, 3:53am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/1 "2021-09-09T03:53:32Z")

</div>

[![Imgur](https://i.imgur.com/CLzAwO5.png "imgur.com") ](https://imgur.com/CLzAwO5)

Any help? I am embarrassed and mildly frustrated that I can’t figure this out.

---

<div class="post-metadata">

**Author:** ![KaidoomDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kaidoomdev/32/977996_2.png) [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Post date:** [September 9, 2021, 5:44am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/2 "2021-09-09T05:44:46Z")

</div>

You can check this similar issue with the same rename error, for them it turns out the anti virus was denying the renaming permission.  
Topic [here](https://answers.unrealengine.com/questions/1007816/solved-unable-to-rename-tmp-file-in-visual-studio.html)

---

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 9, 2021, 6:54am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/3 "2021-09-09T06:54:30Z")

</div>

I tried the solution for them and it didn’t work.

 ![bbbbb](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/a/5a8392c31b78bce020b06f472d1ac006179193da.png)

---

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 9, 2021, 7:09am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/4 "2021-09-09T07:09:03Z")

</div>

also I can’t compile nor write in C++. I can open blueprints, but not c++. That’s when I get that error message.

---

<div class="post-metadata">

**Author:** ![KaidoomDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kaidoomdev/32/977996_2.png) [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Post date:** [September 9, 2021, 7:15am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/5 "2021-09-09T07:15:17Z")

</div>

It might be that something is preventing the compiler from renaming the mentioned file or it doesn’t have permission in that folder. I would try moving the project folder somewhere else like the desktop and make sure no program is interfering with file permissions or trying to manipulate that file.

---

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 9, 2021, 7:25am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/6 "2021-09-09T07:25:13Z")

</div>

I tried running as admin and got this message:

 ![loginadm](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/8/a833fefe76976ac5cc38b65ee2ea7515f10fc034.png)

---

<div class="post-metadata">

**Author:** ![Dutii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dutii](https://forums.unrealengine.com/u/Dutii)\
**Post date:** [September 9, 2021, 7:33am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/7 "2021-09-09T07:33:56Z")

</div>

Could you try this:

> [@Unreal Engine 4 Compiler Warning License is invalid](https://forums.unrealengine.com/t/unreal-engine-4-compiler-warning-license-is-invalid/146055):
>
> Hello Everyone, This is my first post here in the forum! please do tell me if i am unclear with my question!. My Unreal Engine Version is 4.25.1 I am using Rider 201.7189.55 as compiler I Started Getting this warning " - License is invalid" Ever since i updated my visual 2019 professional edition the good thing is that everything compiles and works perfectly fine, but every time i compile i get this warning. Here is the full error report CONSOLE: Use build tool: C:\Program Files (x86)\Mi…

---

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 9, 2021, 7:40am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/8 "2021-09-09T07:40:28Z")

</div>

tried it and got this messoge:

 ![dyillgo](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/0/b0c3ac4701b7fb93f1ffbce218f9f4dc8811bec2.png)

---

<div class="post-metadata">

**Author:** ![Dutii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dutii](https://forums.unrealengine.com/u/Dutii)\
**Post date:** [September 9, 2021, 7:42am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/9 "2021-09-09T07:42:55Z")

</div>

Have you tried compiling the project from Visual Studio?

---

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 9, 2021, 7:45am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/10 "2021-09-09T07:45:48Z")

</div>

Dumb question coming right now in your direction. How do I do that?

---

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 9, 2021, 7:46am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/11 "2021-09-09T07:46:37Z")

</div>

When there isn’t anything to compile as I can’t write any code.

---

<div class="post-metadata">

**Author:** ![Dutii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dutii](https://forums.unrealengine.com/u/Dutii)\
**Post date:** [September 9, 2021, 7:48am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/12 "2021-09-09T07:48:44Z")

</div>

There is something to compile. Your error is caused at compile time. Just because you didn’t write the code doesn’t mean there’s not anything to compile.

Open the solution (.sln) file in your project folder and press compile / build. Think the shortcut in Visual Studio is Ctrl + Shift + B or Shift + B or something.

---

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 9, 2021, 7:49am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/13 "2021-09-09T07:49:58Z")

</div>

will try

---

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 9, 2021, 7:54am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/14 "2021-09-09T07:54:29Z")

</div>

says there were build errors and would you like to recompile them and then says would you like to recompile them manually?

---

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 9, 2021, 7:56am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/15 "2021-09-09T07:56:46Z")

</div>

Says this:

Build started…  
1\>------ Skipped Build: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------  
1\>Project not selected to build for this solution configuration  
2\>------ Build started: Project: MyProject4, Configuration: Development\_Editor x64 ------  
2\>Building MyProject4Editor…  
2\>Using Visual Studio 2019 14.29.30133 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).  
2\>Building 8 actions with 12 processes…  
2\> [1/8] SharedPCH.Engine.ShadowErrors.cpp  
2\>EXEC : error : Unable to rename C:\Users\Daniel\Desktop\Unreal Projects\MyProject4\Intermediate\Build\Win64\MyProject4Editor\Development\Engine\SharedPCH.Engine.ShadowErrors.h.txt.tmp to C:\Users\Daniel\Desktop\Unreal Projects\MyProject4\Intermediate\Build\Win64\MyProject4Editor\Development\Engine\SharedPCH.Engine.ShadowErrors.h.txt  
2\>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(45,5): error MSB3073: The command “C:\Users\Daniel\Desktop\unreal\UE\_4.27\Engine\Build\BatchFiles\Build.bat MyProject4Editor Win64 Development -Project=“C:\Users\Daniel\Desktop\Unreal Projects\MyProject4\MyProject4.uproject” -WaitMutex -FromMsBuild” exited with code 6.  
2\>Done building project “MyProject4.vcxproj” – FAILED.  
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========

---

<div class="post-metadata">

**Author:** ![Dutii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dutii](https://forums.unrealengine.com/u/Dutii)\
**Post date:** [September 9, 2021, 8:00am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/16 "2021-09-09T08:00:02Z")

</div>

Close Visual Studio and Unreal Engine.

Open “Visual Studio Installer”. If your Visual Studio has an update, update it.

When updated, click modify. Make sure you have “Game Development with C++” installed.

It looks like your compiler doesn’t know what a header file is.

---

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 9, 2021, 8:04am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/17 "2021-09-09T08:04:48Z")

</div>

It’s up to date

 ![Screenshot 2021-09-09 030428](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/b/2b8629f0566cb74269220968bccd049f2abddcff.png)

---

<div class="post-metadata">

**Author:** ![Dutii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dutii](https://forums.unrealengine.com/u/Dutii)\
**Post date:** [September 9, 2021, 8:06am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/18 "2021-09-09T08:06:24Z")

</div>

Do you have “Game development with C++” installed too? It’s further down the list and mentions Unreal Engine specifically.

---

<div class="post-metadata">

**Author:** ![hotgyrosandbeef](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hotgyrosandbeef/32/88706_2.png) [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Post date:** [September 12, 2021, 7:46pm UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/19 "2021-09-12T19:46:09Z")

</div>

Yes, sorry for the long wait to respond. Unreal community forbid me to comment due to being a newb. I have also made the move to unity because unreal is acting up and I can’t figure out why. Such a shame.

---

<div class="post-metadata">

**Author:** ![creativ3lab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@creativ3lab](https://forums.unrealengine.com/u/creativ3lab)\
**Post date:** [September 16, 2021, 4:24am UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726/20 "2021-09-16T04:24:30Z")

</div>

You running incredibuild by chance ??if you are Uninstall your license for it that way you have it if need it again and than Uninstall incredibuild and than a restart should work thats the only time I have seen that problem

[Next page](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726.md?page=2)
