Object library in Blueprints or from c++

And here’s the errors (unfortunately in German):

[****]\BlueprintNodeThing.cpp(7): error C2065: "UObjectLibrary": nichtdeklarierter Bezeichner
[****]\BlueprintNodeThing.cpp(7): error C2065: "ObjectLibrary": nichtdeklarierter Bezeichner
[****]\BlueprintNodeThing.cpp(7): error C2653: "UObjectLibrary": Keine Klasse oder Namespace
[****]\BlueprintNodeThing.cpp(7): error C3861: "CreateLibrary": Bezeichner wurde nicht gefunden.
[****]\BlueprintNodeThing.cpp(8): error C2065: "ObjectLibrary": nichtdeklarierter Bezeichner
[****]\BlueprintNodeThing.cpp(10): error C2065: "ObjectLibrary": nichtdeklarierter Bezeichner
[****]\BlueprintNodeThing.cpp(10): error C2227: Links von "->AddToRoot" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.
[****]\BlueprintNodeThing.cpp(10): note: Typ ist "unknown-type"
[****]\BlueprintNodeThing.cpp(12): error C2065: "ObjectLibrary": nichtdeklarierter Bezeichner
[****]\BlueprintNodeThing.cpp(12): error C2227: Links von "->LoadAssetDataFromPath" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.
[****]\BlueprintNodeThing.cpp(12): note: Typ ist "unknown-type"
[****]\BlueprintNodeThing.cpp(14): error C2065: "ObjectLibrary": nichtdeklarierter Bezeichner
[****]\BlueprintNodeThing.cpp(14): error C2227: Links von "->GetAssetDataList" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.
[****]\BlueprintNodeThing.cpp(14): note: Typ ist "unknown-type"

Oh and when I uncomment

/*#include "BlueprintNodeThing.generated.h"

I get only this error:

[****]\BlueprintNodeThing.h(5): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "BlueprintNodeThing.generated.h": No such file or directory