# Windows Link error when using USceneCaptureComponentCube

**URL:** <https://forums.unrealengine.com/t/windows-link-error-when-using-uscenecapturecomponentcube/35580>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [July 16, 2015, 9:37am UTC](https://forums.unrealengine.com/t/windows-link-error-when-using-uscenecapturecomponentcube/35580 "2015-07-16T09:37:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luguen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luguen](https://forums.unrealengine.com/u/Luguen)\
**Post date:** [July 16, 2015, 9:37am UTC](https://forums.unrealengine.com/t/windows-link-error-when-using-uscenecapturecomponentcube/35580/1 "2015-07-16T09:37:06Z")

</div>

Hi everybody,

On windows, I try to override the USceneCaptureComponentCube class.  
On a very simple test project, I only add a “New C++ class” and choose SceneCaptureComponentCube as a parent.  
Then the compilation is ok, but I have these messages during the link:

```auto

MySceneCaptureComponentCube.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl USceneCaptureComponent::PostLoad(void)" (?PostLoad@USceneCaptureComponent@@UEAAXXZ)
1>MyProjectTest.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl USceneCaptureComponent::PostLoad(void)" (?PostLoad@USceneCaptureComponent@@UEAAXXZ)
1>MySceneCaptureComponentCube.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl USceneCaptureComponentCube::OnRegister(void)" (?OnRegister@USceneCaptureComponentCube@@UEAAXXZ)
1>MyProjectTest.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl USceneCaptureComponentCube::OnRegister(void)" (?OnRegister@USceneCaptureComponentCube@@UEAAXXZ)
1>MySceneCaptureComponentCube.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl USceneCaptureComponentCube::SendRenderTransform_Concurrent(void)" (?SendRenderTransform_Concurrent@USceneCaptureComponentCube@@UEAAXXZ)
1>MyProjectTest.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl USceneCaptureComponentCube::SendRenderTransform_Concurrent(void)" (?SendRenderTransform_Concurrent@USceneCaptureComponentCube@@UEAAXXZ)
1>MySceneCaptureComponentCube.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl USceneCaptureComponentCube::TickComponent(float,enum ELevelTick,struct FActorComponentTickFunction *)" (?TickComponent@USceneCaptureComponentCube@@UEAAXMW4ELevelTick@@PEAUFActorComponentTickFunction@@@Z)
1>MyProjectTest.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl USceneCaptureComponentCube::TickComponent(float,enum ELevelTick,struct FActorComponentTickFunction *)" (?TickComponent@USceneCaptureComponentCube@@UEAAXMW4ELevelTick@@PEAUFActorComponentTickFunction@@@Z)
1>MySceneCaptureComponentCube.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl USceneCaptureComponentCube::PostEditChangeProperty(struct FPropertyChangedEvent &)" (?PostEditChangeProperty@USceneCaptureComponentCube@@UEAAXAEAUFPropertyChangedEvent@@@Z)
1>MyProjectTest.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl USceneCaptureComponentCube::PostEditChangeProperty(struct FPropertyChangedEvent &)" (?PostEditChangeProperty@USceneCaptureComponentCube@@UEAAXAEAUFPropertyChangedEvent@@@Z)
1>MyProjectTest.generated.cpp.obj : error LNK2019: unresolved external symbol "public: static void __cdecl USceneCaptureComponent::AddReferencedObjects(class UObject *,class FReferenceCollector &)" (?AddReferencedObjects@USceneCaptureComponent@@SAXPEAVUObject@@AEAVFReferenceCollector@@@Z) referenced in function "void__cdecl GetPrivateStaticClassBody<class UMySceneCaptureComponentCube>(wchar_t const *,wchar_t const *,class UClass * &,void (__cdecl*)(void))" (??$GetPrivateStaticClassBody@VUMySceneCaptureComponentCube@@@@YAXPEB_W0AEAPEAVUClass@@P6AXXZ@Z)

```

I tried on different PC with the same errors.  
It seems to work on Linux.

Any idea on how to fix that ?

Thanks,  
Luguen

---

<div class="post-metadata">

**Author:** ![Luguen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luguen](https://forums.unrealengine.com/u/Luguen)\
**Post date:** [July 23, 2015, 1:14pm UTC](https://forums.unrealengine.com/t/windows-link-error-when-using-uscenecapturecomponentcube/35580/2 "2015-07-23T13:14:38Z")

</div>

Anybody tried this ?  
The error is the same using USceneCaptureComponent2D…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_239b08471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_239b08471](https://forums.unrealengine.com/u/anonymous_user_239b08471)\
**Post date:** [November 7, 2015, 1:58am UTC](https://forums.unrealengine.com/t/windows-link-error-when-using-uscenecapturecomponentcube/35580/3 "2015-11-07T01:58:02Z")

</div>

Any update on this. I am getting the same error with both 4.8.3 and 4.9.2

Cheers
