# Error , "inconsistent dll linkage"

**URL:** <https://forums.unrealengine.com/t/error-inconsistent-dll-linkage/1201846>\
**Category:** Programming & Scripting\
**Tags:** CPP\
**Created:** [June 17, 2023, 3:10am UTC](https://forums.unrealengine.com/t/error-inconsistent-dll-linkage/1201846 "2023-06-17T03:10:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasontodd2324](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jasontodd2324](https://forums.unrealengine.com/u/jasontodd2324)\
**Post date:** [June 17, 2023, 3:10am UTC](https://forums.unrealengine.com/t/error-inconsistent-dll-linkage/1201846/1 "2023-06-17T03:10:17Z")

</div>

```auto

#include "C_DecalTest_1.h"
#include "Components/DecalComponent.h"
#include "C_NationsPlayerController.h"
#include "Runtime/Engine/Classes/Kismet/GameplayStatics.h"
#include "Runtime/Engine/Classes/GameFramework/PlayerController.h"
#include "Components/DecalComponent.h"
#include "Materials/MaterialInterface.h"
#include "UObject/ConstructorHelpers.h"
#include "Materials/MaterialInterface.h"
#include "PhysicsEngine/PhysicsSettings.h"
#include "Kismet/GameplayStatics.h"

// Sets default values
AC_DecalTest_1::AC_DecalTest_1()
{
 	// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;

	

	DecalComponent = CreateDefaultSubobject<UDecalComponent>(TEXT("MyDecal"));

	static ConstructorHelpers::FObjectFinder<UMaterial> FoundMaterial(TEXT("/Game/DecalMat.DecalMat"));
	if (FoundMaterial.Succeeded())
	{
		DecalMaterial = FoundMaterial.Object;
	}
	DecalDynamicMaterialInst = UMaterialInstanceDynamic::Create(DecalMaterial, DecalComponent);
	DecalComponent->SetDecalMaterial(DecalDynamicMaterialInst);

}

// Called when the game starts or when spawned
void AC_DecalTest_1::BeginPlay()
{
	Super::BeginPlay();
	

}

// Called every frame
void AC_DecalTest_1::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);

	UGameplayStatics::GetPlayerController(GetWorld(), 0)->GetMousePosition(MouseX, MouseY);

	UE_LOG(LogTemp, Warning, TEXT("MousePositiion: %f"), MouseX, MouseY);
}

bool UGameplayStatics::FindCollisionUV(const struct FHitResult& Hit, int32 UVChannel, FVector2D& UV)
{

}

```

This is my code and at the very end is “FindCollisionUV”, now when I put the function in the cpp file its gives me this error…

 ![Screenshot 2023-06-16 200848](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/3/6c357fe7d83756db351ca2bdd330928198eec99e.png)

how do I fix this?

this is my declarations in my header file just in case,

![Screenshot 2023-06-16 201008](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/5/d954856a2bdb66d36891dc4fd74cc42ee8c6e11f.png)
