# Compilation error with damage.h

**URL:** <https://forums.unrealengine.com/t/compilation-error-with-damage-h/383032>\
**Category:** Pipeline & Plugins\
**Tags:** compilation-error, unreal-engine, Visual-Studio, question\
**Created:** [January 26, 2017, 4:22pm UTC](https://forums.unrealengine.com/t/compilation-error-with-damage-h/383032 "2017-01-26T16:22:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cedric\_Schaff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cedric\_Schaff](https://forums.unrealengine.com/u/Cedric_Schaff)\
**Post date:** [January 26, 2017, 4:22pm UTC](https://forums.unrealengine.com/t/compilation-error-with-damage-h/383032/1 "2017-01-26T16:22:15Z")

</div>

Hello,

I have this error when i try to build the project:  
Error C2143 syntax error: missing ‘;’ before ‘’ ShipsRD3 C:\Program Files (x86)\Epic Games\4.14\Engine\Source\Runtime\Engine\Classes\GameFramework\DamageType.h 16

I tried to revert to a version which compiled previously without problem: but i get the same error. Don’t understand why, i don’t use UDamageType in any of my source. I planned to, but only override AActor::TakeDamage in the last revision (which may have caused the problem ??!)

I tried to clean/build. I even deleted (backuped) the intermediate folder. No Result !!

Can anyone point me in the right direction to solve this.

---

<div class="post-metadata">

**Author:** ![homembarata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@homembarata](https://forums.unrealengine.com/u/homembarata)\
**Post date:** [January 26, 2017, 4:37pm UTC](https://forums.unrealengine.com/t/compilation-error-with-damage-h/383032/2 "2017-01-26T16:37:05Z")

</div>

Have you tried commenting AActor::TakeDamage and compiling? If it works the problem is there.

If not, the problem could be in the order of the .h files being included, try changing the order of DamageType.h.

---

<div class="post-metadata">

**Author:** ![Cedric\_Schaff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cedric\_Schaff](https://forums.unrealengine.com/u/Cedric_Schaff)\
**Post date:** [January 26, 2017, 5:20pm UTC](https://forums.unrealengine.com/t/compilation-error-with-damage-h/383032/3 "2017-01-26T17:20:39Z")

</div>

Already tried that by reverting to a previous version. Your idea to check the includes point me in the right direction. I previoulsy made a enum called EDamageType in a file called DamageType.h . By deleting it, i had a successful compilation. It must have been confusion with the DamageType.generated.h from the engine. Thanks !
