# "bUseUnity = false" + SListView = errors

**URL:** <https://forums.unrealengine.com/t/buseunity-false-slistview-errors/470657>\
**Category:** UI\
**Tags:** listview, unreal-engine, slate, question, structs\
**Created:** [September 1, 2020, 6:55pm UTC](https://forums.unrealengine.com/t/buseunity-false-slistview-errors/470657 "2020-09-01T18:55:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pDunkl](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pdunkl/32/1194600_2.png) [@pDunkl](https://forums.unrealengine.com/u/pDunkl)\
**Post date:** [September 1, 2020, 6:55pm UTC](https://forums.unrealengine.com/t/buseunity-false-slistview-errors/470657/1 "2020-09-01T18:55:14Z")

</div>

Hi,  
my project makes extensive use of the SListview template class, and eveything compiles fine with bUseUnity = true in the .Build.cs file. But as soon as I set bUseUnity (previously called: bUseUnityBuild) to false, to speed up iteration time the project won’t compile and I get these errors:

C2139  
C2079

 ![312057-unbenannt.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/3/8534c0f04f57efc60f40e0e52c611c9ed9cd02c8.png)

FInventoryEntryValue is a simple struct containing 3 constructors 1 function and 2 variables, so nothing special.

 ![312060-structs.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/1/e41e395e79cee2fa935154b813054f57a86b1b30.png)

Any suggestions?

Sorry for the errors being in german, but the error codes are universal anyways

---

<div class="post-metadata">

**Author:** ![pDunkl](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pdunkl/32/1194600_2.png) [@pDunkl](https://forums.unrealengine.com/u/pDunkl)\
**Post date:** [September 1, 2020, 8:08pm UTC](https://forums.unrealengine.com/t/buseunity-false-slistview-errors/470657/2 "2020-09-01T20:08:33Z")

</div>

Nevermind.  
There was no problem with the Listview or anything, Visual Studio just showed the errors there because the ListView was inside a custom SCompoundWidget (my hud) and that was inside a APlayerController, which holds the source for the Listview Items (FInventoryEntry), BUT only had a forward declaration of the struct. With UseUnity = true it got the required definition.

Just including the struct header in the my playercontroller header solved everything.
