Get Private Static Class Unresolved Symbol

Hiii,

So I created a plugin in c++, this plugin has a component (header placed in its Public/ folder and source files placed in its Private/ folder) here’s the class :

I’d like to create a component on an actor coded in my game’s folder (the game will serve as a demo for my plugin) here’s the actor I’m trying to use the component on :

But when I try to define an instance of my component here :

it generates me the linker error :


(I think it might that the MyCaptureComponent.cpp was not compiled when AAudioCaptureActor tried to access it)

Hi @444_Nuits,

Two things that you could try:

  1. Check that the plugin is a dependency in YourGame.Build.cs file.
  2. Make sure that the UMyCaptureComponent class is correctly exported with the YOURPLUGIN_API macro in its declaration, which is required to export the symbols for the linker.

Hope this help!

Thank you very much, the issue was that I didn’t add the PLUGIN_API exportation to my class declaration :slight_smile:

1 Like

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