# Link Error Plugin

**URL:** <https://forums.unrealengine.com/t/link-error-plugin/1783331>\
**Category:** C++\
**Tags:** unreal-engine, link, bug-report, Plugins, CPP, question\
**Created:** [April 2, 2024, 9:28am UTC](https://forums.unrealengine.com/t/link-error-plugin/1783331 "2024-04-02T09:28:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![444\_Nuits](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/444_nuits/32/901354_2.png) [@444\_Nuits](https://forums.unrealengine.com/u/444_Nuits)\
**Post date:** [April 2, 2024, 9:28am UTC](https://forums.unrealengine.com/t/link-error-plugin/1783331/1 "2024-04-02T09:28:18Z")

</div>

Hi,  
I’m trying use a class existing in the c++ files of my plugin (Game\Plugins\ImitationLib\Source\ImitationLib\Private\RingBuffer)

I’m using the RingBufferConsumerClass here :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/5/3055f1e35db34c18c9e81c0b696bb8c64ceb6d58.png)

Here’s my .build.cs of my game :

```c++
PublicDependencyModuleNames.AddRange(new string[] 
		{ 
			//default modules
			"Core",
			"CoreUObject", 
			"Engine",
			"InputCore", 
			"HeadMountedDisplay",

			//added modules
			"SignalProcessing",
			"AudioMixer", 
			"ImitationLib",
			"XmlParser",
			"UMG"
		}
);
PublicDependencyModuleNames.AddRange(new string[]{"ImitationLib"});
PrivateIncludePathModuleNames.AddRange(new string[]{"ImitationLib"});

```

as you see I added my plugin but I still get this linking error :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/d/29d076a7824fa6580bac404b9666e5fa960150cd.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [April 2, 2024, 1:35pm UTC](https://forums.unrealengine.com/t/link-error-plugin/1783331/2 "2024-04-02T13:35:57Z")

</div>

What does the ringBufferConsumer constructor look like? From the error it seems to take in a RingBufferReadLock pointer and an int. I think that is where your problem lies.

Does it have a parameterless constructor version?

Also does unreal allow for multiple inheritances? I thought that in Unreal you could only inherit from one class and then add on implemented interfaces.

---

<div class="post-metadata">

**Author:** ![444\_Nuits](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/444_nuits/32/901354_2.png) [@444\_Nuits](https://forums.unrealengine.com/u/444_Nuits)\
**Post date:** [April 2, 2024, 2:45pm UTC](https://forums.unrealengine.com/t/link-error-plugin/1783331/3 "2024-04-02T14:45:01Z")

</div>

Sure here is the RingBufferConsummer class :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/9/1d9e3fe874db612c717792b81ab311ace0aa8dc4.png)

And yeah UE 5 allow multiple inhetirances as long as it has the constructor UMyComponent(const FObjectInitializer& ObjectInitializer)

---

<div class="post-metadata">

**Author:** ![444\_Nuits](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/444_nuits/32/901354_2.png) [@444\_Nuits](https://forums.unrealengine.com/u/444_Nuits)\
**Post date:** [April 2, 2024, 2:45pm UTC](https://forums.unrealengine.com/t/link-error-plugin/1783331/4 "2024-04-02T14:45:33Z")

</div>

I think the issue is just that RingBufferConsummer.cpp is not compiled when I’m trying to access it from my game

---

<div class="post-metadata">

**Author:** ![444\_Nuits](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/444_nuits/32/901354_2.png) [@444\_Nuits](https://forums.unrealengine.com/u/444_Nuits)\
**Post date:** [April 16, 2024, 9:36am UTC](https://forums.unrealengine.com/t/link-error-plugin/1783331/5 "2024-04-16T09:36:50Z")

</div>

> [@444\_Nuits](#):
>
> error

Solved, I just needed to add IMITATIONLIB\_API tag behind my class name

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [May 16, 2024, 9:37am UTC](https://forums.unrealengine.com/t/link-error-plugin/1783331/6 "2024-05-16T09:37:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
