Hello,
I have a linking error when I compile with the new object to create DataLayerInstance. I don’t what is happening I have the DataLayerEditor module in the build.cs and the header. Do someone has the solution ?
Erreur LNK2019 symbole externe non résolu "public: __cdecl FDataLayerCreationParameters::FDataLayerCreationParameters(void)" (??0FDataLayerCreationParameters@@QEAA@XZ) référencé dans la fonction "public: void __cdecl UCellManagerSubsystem::CreateCellDataLayer(void)" (?CreateCellDataLayer@UCellManagerSubsystem@@QEAAXXZ) CorysNE D:\Projects\UnrealProjects\Project_NE\Intermediate\ProjectFiles\CellManagerSubsystem.cpp.obj
The build.cs
// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class CellManager : ModuleRules
{
public CellManager(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
"ProceduralMeshComponent",
// ... add other public dependencies that you statically link with here ...
}
);
PrivateDependencyModuleNames.AddRange(
new string[]
{
"CoreUObject",
"Engine",
"GDAL_LIB",
"HTTP",
"EditorSubsystem",
"UnrealEd",
"AssetRegistry",
"DataLayerEditor",
"AssetTools",
"Slate",
"SlateCore",
"CorysProject",
"WorldPartitionEditor",
"Json",//To remove
"JsonUtilities",//To remove
// ... add private dependencies that you statically link with here ...
}
);
;
bEnableUndefinedIdentifierWarnings = false;
}
}
in the source code:
#include "DataLayer/DataLayerEditorSubsystem.h"
void UMyClass::CreateDataLayer(){
//...
FDataLayerCreationParameters oParams;
//...
}