Did you previously use 4.15? There were a large amount of header changes that came with 4.15, so if you haven’t updated your project to work with that - you’ll have to do it with 4.16.
Likely your header file is missing the following includes:
#include "UObject/ObjectMacros.h" #include "UObject/ScriptMacros.h"