what is wrong with this line:
TSharedPtr GraphEditorCommands = MakeShareable(new FUICommandList);
?
adding line causing error “one or more multiply defined symbols found”.
here is my code of “pak_4_10_3_p2Editor.h” and pak_4_10_3_p2Editor.cpp
//pak_4_10_3_p2Editor.h
#pragma once
#include "Engine.h"//--> to get macro for IMPLEMENT_GAME_MODULE used in pak_4_10_3_p2Editor.h
///module creation part below
#include "ModuleManager.h"
#include "UnrealEd.h"
#include "SlateBasics.h"
#include "CoreUObject.h"
//#include "Slate.h"//"including Slate.h is deprecated. Please include SlateBasics.h and then individual widget headers instead."
#include "LevelEditor.h"
#include "LevelEditorActions.h"
#include "SharedPointer.h"
#include "Internationalization.h"
#include "MultiBoxExtender.h"
#include "Commands.h"
#include "EditorStyle.h"
#include "SWindow.h"
#include "SViewport.h"
#include "ObjectTools.h"
#include "Internationalization.h"
class Fpak_4_10_3_p2EditorModule : public IModuleInterface
{
// IModuleInterface implementation
virtual void StartupModule() override;
virtual void ShutdownModule() override;
};
void Fpak_4_10_3_p2EditorModule::ShutdownModule()
{
}
IMPLEMENT_MODULE(Fpak_4_10_3_p2EditorModule, pak_4_10_3_p2Editor)
pak_4_10_3_p2Editor.cpp
#include "pak_4_10_3_p2Editor.h"
void Fpak_4_10_3_p2EditorModule::StartupModule()
{
TSharedPtr<FUICommandList> GraphEditorCommands = MakeShareable(new FUICommandList);//-->adding line causing error "one or more multiply defined symbols found"
}