Compilation error with damage.h

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.

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.

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 !