Hey guys, I'm having trouble with struct definitions. Basically UBT says struct redefinition, so I tried to use an #include guard, but now the child struct(DHWeaponInfo) won't reference it's parent struct properly.
But now that the DependsOn tag is deprecated, I can't use it, and if I use #include circular dependency :/
Help pls http://pastebin.com/uV9Pw3Uk
Here's the UBT log: http://pastebin.com/UhbvQCHs
EDIT:: Don't quote me about the missing default constructors. I just added them, still won't compile :3
The redefinition error is because there is alread a struct in STreeView.h named FItemInfo. Changing the name of the struct should solve that error. During my testing I did notice that after changing the name of the struct I received a compile error because of a missing default constructor. Changing the name of the struct and Including the default constructor were enough to allow the code to compile successfully.
answered Nov 10 '15 at 10:23 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here