[C++] USTRUCT gives missing ';' error
everytime i create a USTRUCT in one of my header files, i get this error:
Here is my code:
This is happening with every single USTRUCT and i am 100% sure that i don't miss a ";".
Sometimes it compiles and sometimes not. This is really annoying! The source seems to be the "GENERATED_USTRUCT_BODY()". As soon as i outcomment it, the error disappears (although without it i can't compile the struct...)
I have other structs that work with the exact same setup. Where does this error come from? Is that my fault or is it a bug?
Engine Version: Newest launcher Download
I haven't tested this in a new project, but i'm sure it will happen there too, since it is happening in a fresh and new class.
I have entered a feature request, UE-13932 to be considered by the development staff to clarify the UHT error present. The missing ";" is a quirk specific to intellisense.
answered Apr 16 '15 at 08:53 PM
Also, for those drawn to this via google. You can get a very similar error:
On the end of the
The missing ; error is an intellisense error only, a false positive in most cases, ignore it, it will eventually catch up and remove the error, for me that is usually after compiling, sometimes it doesn't go away until I reload VS...Sometimes it comes back... you will get alot of these "errors" as you work with UE and you projects get more complex.
answered Jun 25 '15 at 10:00 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here