Problem with structs c++ Unreal Engine 5

image

ItemInfo.h(9): error C2011: ‘FItemInfo’: new definition of type ‘struct’

If you do search through the whole of unreal’s source code you will see that FItemInfo is a struct that is already defined in the engine. That is why you are getting a redefinition error :frowning:

Normally in programming you could get around this type of conflict with namespaces, but unreal only supports them for enums.

FitemInfo (with a small i ) compiles fine.

1 Like

Thank you very much brother! Greetings.

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