Hello. I receive this UCLASS error : " this declaration has no storage class or type specifier " whenever UCLASS isnt exactly on line 7,so therefore I can't write anything above it.I'm receving this error even in the template projects.
I tried reinstalling both Visual studio and the engine but that didn't fix it.Does anyone know what might be causing this problem?
asked Sep 08 '15 at 06:58 PM in C++ Programming
If it compiles correctly, even when IntelliSense is complaining, do this:
Change to DevelopmentEditor configuration, compile; Change to DevelopmentGame configuration, compile. This gets IntelliSense to recompile and rescan headers and everything works fine again.
This often happens when you alter the lines in your .h code, above the declaration of UCLASS but it can affect other types too.
answered Sep 08 '15 at 11:38 PM
Go to build --> configuration Manager --> then change the active solution platform from Win64 to Win32 or vice verse
answered Jul 09 '17 at 10:48 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here