Unresolved External when using TArray

I’ve tried that, and it didn’t seem to help. The only thing that fixes it is combining the two plugins back into a single plugin again – which still doesn’t make much sense, because the code is the same.

TryToCreateDungeon is indeed the function causing the issue, but I’ve narrowed it down to a single line of code inside that function:

FGrammarResult result;

I can place that single line of code in any function in my Dungeon Generator plugin and still get unresolved externals. It’s not limited to FGrammarResult, either – any struct which has a TArray in it causes an unresolved external.

The only thing I can think of is somehow the plugin isn’t exporting these structs properly for whatever reason, but here’s the kicker – calling it from game code is fine. No issues whatsoever. It only occurs when it’s called from another plugin.

My workaround for right now is just to keep the plugins merged into a single plugin. It means some code duplication, so I’m not entirely happy with this solution, but it compiles and runs fine.