# How to fix c++ compilation errors

**URL:** <https://forums.unrealengine.com/t/how-to-fix-c-compilation-errors/428585>\
**Category:** C++\
**Tags:** c-build-fail, unreal-engine, question, CPP\
**Created:** [July 3, 2018, 4:38am UTC](https://forums.unrealengine.com/t/how-to-fix-c-compilation-errors/428585 "2018-07-03T04:38:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MuhammadMoizulhaq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MuhammadMoizulhaq](https://forums.unrealengine.com/u/MuhammadMoizulhaq)\
**Post date:** [July 3, 2018, 4:38am UTC](https://forums.unrealengine.com/t/how-to-fix-c-compilation-errors/428585/1 "2018-07-03T04:38:26Z")

</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.

---

<div class="post-metadata">

**Author:** ![DanielOrchard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danielorchard/32/636987_2.png) [@DanielOrchard](https://forums.unrealengine.com/u/DanielOrchard)\
**Post date:** [July 3, 2018, 10:34am UTC](https://forums.unrealengine.com/t/how-to-fix-c-compilation-errors/428585/2 "2018-07-03T10:34:35Z")

</div>

So failed to generate project files might well be unrelated to the vague error above. You should generate your project files again using cmd so you can view why it fails. You should open a cmd window and try this:

“D:\ProgramFiles\UE\_4.18\Engine\Binaries\DotNET\UnrealBuildTool.exe” -projectfiles -project=“PROJECTPATH.uproject” -game -rocket -progress

Change the paths above as required to point to your engine and project.

This should then give you a nice issue to solve. Often I find it’s just a plugin reference in the .uproject thats no longer available, if so you can just open the uproject in a text editor and change it.

---

<div class="post-metadata">

**Author:** ![MuhammadMoizulhaq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MuhammadMoizulhaq](https://forums.unrealengine.com/u/MuhammadMoizulhaq)\
**Post date:** [August 23, 2021, 8:14am UTC](https://forums.unrealengine.com/t/how-to-fix-c-compilation-errors/428585/3 "2021-08-23T08:14:38Z")

</div>

thanks a lot.  
It works for me perfectly as I am using a plugin that is no longer available.
