# Get Private Static Class Unresolved Symbol

**URL:** <https://forums.unrealengine.com/t/get-private-static-class-unresolved-symbol/1783804>\
**Category:** C++\
**Tags:** linker-error, unreal-engine, bug-report, Plugins, CPP, Blueprint, question\
**Created:** [April 2, 2024, 3:25pm UTC](https://forums.unrealengine.com/t/get-private-static-class-unresolved-symbol/1783804 "2024-04-02T15:25:38Z")\
**Posts on this page:** 4\
**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, 3:25pm UTC](https://forums.unrealengine.com/t/get-private-static-class-unresolved-symbol/1783804/1 "2024-04-02T15:25:38Z")

</div>

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 :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/e/44ed68462561b5eabf060c44c0c18126034120d8.png)

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 :

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

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/0/da0ba13d3c130993f09c67a78f7f51333af14b63.png)

it generates me the linker error :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/8/bd8655b0f77502ccb6fd520a6e8a75ded4c7af87.png)  
(I think it might that the MyCaptureComponent.cpp was not compiled when AAudioCaptureActor tried to access it)

---

<div class="post-metadata">

**Author:** ![SylarAtomic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sylaratomic/32/1194543_2.png) [@SylarAtomic](https://forums.unrealengine.com/u/SylarAtomic)\
**Post date:** [April 2, 2024, 6:01pm UTC](https://forums.unrealengine.com/t/get-private-static-class-unresolved-symbol/1783804/2 "2024-04-02T18:01:55Z")

</div>

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!

---

<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 3, 2024, 7:10am UTC](https://forums.unrealengine.com/t/get-private-static-class-unresolved-symbol/1783804/3 "2024-04-03T07:10:55Z")

</div>

Thank you very much, the issue was that I didn’t add the PLUGIN\_API exportation to my class declaration 🙂

---

<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 3, 2024, 7:11am UTC](https://forums.unrealengine.com/t/get-private-static-class-unresolved-symbol/1783804/4 "2024-05-03T07:11:00Z")

</div>

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