444_Nuits (444_Nuits) April 2, 2024, 9:28am 1 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 :
Here’s my .build.cs of my game :
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 :
3dRaven (3dRaven) April 2, 2024, 1:35pm 2 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.
444_Nuits (444_Nuits) April 2, 2024, 2:45pm 3 Sure here is the RingBufferConsummer class :
And yeah UE 5 allow multiple inhetirances as long as it has the constructor UMyComponent(const FObjectInitializer& ObjectInitializer)
444_Nuits (444_Nuits) April 2, 2024, 2:45pm 4 I think the issue is just that RingBufferConsummer.cpp is not compiled when I’m trying to access it from my game
444_Nuits (444_Nuits) April 16, 2024, 9:36am 5
444_Nuits:
error
Solved, I just needed to add IMITATIONLIB_API tag behind my class name
1 Like
system (system) Closed May 16, 2024, 9:37am 6 This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.