x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Struct redefinition

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

Product Version: UE 4.8
Tags:
more ▼

asked Nov 10 '15 at 01:37 PM in C++ Programming

avatar image

Dirt113
95 12 14 21

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hey Dirt113-

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.

Cheers

Doug Wilson

more ▼

answered Nov 10 '15 at 10:23 PM

avatar image Dirt113 Nov 11 '15 at 07:44 AM

All errors fixed. Thanks :D

avatar image Gabriel Garcia Dec 15 '18 at 10:34 AM

After 2 hours struggling I found this. God bless how informative errors are, lol.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question