Weird LNK2005 error...

Hey, so it’s a function library I found here on the forums and copied to my project.


// Fill out your copyright notice in the Description page of Project Settings.

#pragma once
#include "Engine/DataTable.h"
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "DataTableFunctionLibrary.generated.h"


UCLASS()
class ROME_API UPsTableFunctionLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY()

public:

UFUNCTION(BlueprintPure, Category = "DataTableFunctionLibrary")
static bool GetDataTableIndexOfRow(FDataTableRowHandle Handle, int32& RowIndex);

UFUNCTION(BlueprintPure, CustomThunk, Category = "DataTableFunctionLibrary", meta = (CustomStructureParam = "Row"))
static bool GetDataTableRowByIndexWildcard(UDataTable* Table, int32 RowIndex, FTableRowBase& Row);
static bool Generic_GetDataTableRowByIndexWildcard(UDataTable* Table, int32 RowIndex, void* OutRowPtr, UStructProperty* OutRowProperty);
DECLARE_FUNCTION(execGetDataTableRowByIndexWildcard)
{
P_GET_OBJECT(UDataTable, Table);
P_GET_PROPERTY(UIntProperty, RowIndex);
Stack.StepCompiledIn<UStructProperty>(NULL);
void* OutRowPtr = Stack.MostRecentPropertyAddress;
UStructProperty* OutRowProperty = Cast<UStructProperty>(Stack.MostRecentProperty);
P_FINISH;
P_NATIVE_BEGIN;
*(bool*)RESULT_PARAM = Generic_GetDataTableRowByIndexWildcard(Table, RowIndex, OutRowPtr, OutRowProperty);
P_NATIVE_END;
}

UFUNCTION(BlueprintPure, CustomThunk, Category = "DataTableFunctionLibrary", meta = (CustomStructureParam = "Row"))
static bool GetDataTableRowByNameWildcard(UDataTable* Table, FName RowName, FTableRowBase& Row);
static bool Generic_GetDataTableRowByNameWildcard(UDataTable* Table, FName RowName, void* OutRowPtr, UStructProperty* OutRowProperty);
DECLARE_FUNCTION(execGetDataTableRowByNameWildcard)
{
P_GET_OBJECT(UDataTable, Table);
P_GET_PROPERTY(UNameProperty, RowName);
Stack.StepCompiledIn<UStructProperty>(NULL);
void* OutRowPtr = Stack.MostRecentPropertyAddress;
UStructProperty* OutRowProperty = Cast<UStructProperty>(Stack.MostRecentProperty);
P_FINISH;
P_NATIVE_BEGIN;
*(bool*)RESULT_PARAM = Generic_GetDataTableRowByNameWildcard(Table, RowName, OutRowPtr, OutRowProperty);
P_NATIVE_END;
}

UFUNCTION(BlueprintPure, Category = "DataTableFunctionLibrary")
static int32 GetDataTableRowCount(UDataTable* Table);

UFUNCTION(BlueprintPure, CustomThunk, Category = "DataTableFunctionLibrary", meta = (CustomStructureParam = "Row"))
static bool GetDataTableRowWildcard(FDataTableRowHandle Handle, FTableRowBase& Row);
static bool Generic_GetDataTableRowWildcard(FDataTableRowHandle Handle, void* OutRowPtr, UStructProperty* OutRowProperty);
DECLARE_FUNCTION(execGetDataTableRowWildcard)
{
P_GET_STRUCT(FDataTableRowHandle, Handle);
Stack.StepCompiledIn<UStructProperty>(NULL);
void* OutRowPtr = Stack.MostRecentPropertyAddress;
UStructProperty* OutRowProperty = Cast<UStructProperty>(Stack.MostRecentProperty);
P_FINISH;
P_NATIVE_BEGIN;
*(bool*)RESULT_PARAM = Generic_GetDataTableRowWildcard(Handle, OutRowPtr, OutRowProperty);
P_NATIVE_END;
}





};