The problems I had compiling this was that
- BullCowCartridge.h wasn’t the first include in BullCowCartridge.cpp
- You don’t have a semicolon at the end of your word list in HiddenWordList.h
const TArray<FString> Words { ... }; // missing ;
The problems I had compiling this was that
const TArray<FString> Words
{
...
}; // missing ;
@boocs and @DanM I did what both of you said I re-arranged the #include statements in BullCowCartridge.cpp and I re-built my code and then Unreal finally opened correctly and it compiled with no errors. Thanks so much for your patience, I will definitely rate this course 5 stars!
Also per your original question, you’ll get those GENERATED_BODY() errors any time you add a space above it. It’ll happen even if you add a space above the class declaration. Usually a build will fix it. Sometime you might have to restart.
You’ll get these often when we start adding forward declarations.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.