Using LandscapeEditorUtils:SetHeightmapData()

hello everyone, i’m new in ue programming community. I’m having problems trying to edit landscape in c ++. I have read the Unreal Engine 4 Scripting with C ++ Cookbook, which guides using LandscapeEditorUtils::SetHeightmapData function but I can not call this function because in LandscapeEditorUtils.h there is a definition:

bool LANDSCAPEEDITOR_API SetHeightmapData(AlandscapeProxy* Landscape,const TArray& Data);

I do not understand the role of the marco LANDSCAPEEDITOR_API, it makes me not call the function?
How can I call this function?

Link in the Landscape and LandscapeEditor APIs in your Project.Build.cs file like this:
PrivateDependencyModuleNames.AddRange(new string[] { “Slate”, “SlateCore”, “Landscape”, “LandscapeEditor” });
Then you can invoke this function according to your cookbook.