x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.14
Tags:
more ▼

asked Jan 26 '17 at 04:22 PM in C++ Programming

avatar image

Cédric Schaff
10 2 5

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Jan 26 '17 at 04:37 PM

avatar image

homembarata
112 5 8 18

avatar image Cédric Schaff Jan 26 '17 at 05:20 PM

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 !

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question