Hi all,
I am able to get up to the start of lecture 160 “A Better Component Architecture” with no problems. However, as soon as I make the forward declaration for UTankTrack in the TankMovementComponent.h file, my code no longer compiles. Additionally, a red error line appears under the #include for the generated header file, and under the word ‘class’ before the UTankMovementComponent class declaration:
This is accompanied by error messages saying that “TankMovementComponent.generated.h” doesn’t exist.
Worse still, when I remove the line I can still no longer compile, and am instead flooded with many more errors:
In fact, the only way to fix the issue is to completely restore to the previous working commit, immediately before this line was written.
Can anyone help to fix this issue? I have worked up to this lecture several times now, hoping that it would work this time, but I can only seem to irreparably break my code and have to hard reset. Note that my code and blueprint setup is identical to Ben’s in the lectures, apart from the additional #include’s due to the include what you use system.