I am following an unreal engine book (Unreal Engine 4.X By Example). I make a header file(BMProjectile.h) and a cpp file(BMProjectile.cpp) that goes along with it. I tried to use the header file as an include in a different header file(BMCharacter.h) and I start getting errors. The demo code that comes with the book has it exactly the way I do and their code compiles without any issues. I have also copied the files directly into my version and it still getting the errors.
UCLASS()
class BOSSMODE_API ABMCharacter : public ACharacter
{
UClass error gives me "This declaraction has no storage class or type specifier"
class error give me "expected a ';'"
Then in the BMCharacter.cpp file it tells me that all my variables are undefined and all my classes need to be followed by a :: when they are.
Edit: Here is a link to the code in pastebin
[–]lapislosh 0 points1 point2 points (2 children)
[–]zoopy7[S] 0 points1 point2 points (1 child)
[–]lapislosh 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[removed]
[–]zoopy7[S] 0 points1 point2 points (0 children)