Can't link to LandscapeEditor properly

I’m attempting to access the FEdModeLandscape class in the LandscapeEditor module from the AssetTools module I’m modifying. I’ve added “LandscapeEditor” to the include paths and dependencies, but I still get an unresolved externals error when linking. I tried adding the UNREALED_API macro to the FEdModeLandscape declaration, but then I get slammed with inconsistent linkage errors. I am able to successfully compile and link when calling some functions on FEdModeLandscape, but I get the linker errors on certain functions (e.g. SetCurrentTool). Halp!

I have same the problem.
"error LNK2019: unresolved external symbol “public: void __cdecl FEdModeLandscape::ImportData”.

.Build.cs:
PrivateDependencyModuleNames.AddRange(new string[] { …, “Landscape”, “LandscapeEditor”, …}

I have no a solution.

Once I had an issue with this GBWhatsApp, I updated its version and its settings, then my issue was resolved.

It doesn’t make sense

FEdModeLandscape class doesn’t have the dll export atribute. You have to add LANDSCAPE_API in the declaration and rebuild the engine.

class LANDSCAPE_API FEdModeLandscape : public FEdMode, public ILandscapeEdModeInterface

But I hope there is an other way