Problem to create a struc
In my project, i cannot create a simple ustruct even if I copy/paste an existing and functional struct from an other file: it always fails to build. More precisely, the "GENERATED_USTRUCT_BODY" is always underlined with the error message "this declaration has no storage class or type specifier". And the first thing after that is marked as "expected ;" Here is the code of my header (but this problem occurs everywhere) :
As you can see, i have not forget the .generated.h, so i don't understand from where this error comes. To finish, i work with UE 4.5.
Thank you in advance.
asked Oct 30 '14 at 09:36 PM in C++ Programming
After a cleaning and a rebuild of my project, I managed to launch it but the false error that I described is always there. That's weird and annoying but if it works... Problem solved. (If someone knows how to solve that, I would be happy to know)...
answered Oct 31 '14 at 12:45 AM
The constructor for the struct shouldn't have the last ";". Here is an working example:
answered Oct 30 '14 at 09:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here