On Wednesday, 18 March 2015 at 15:50:16 UTC, Robert M. Münch wrote: > struct1 is visible in the DLL, struct2 is not visible in the > DLL. It will not work because a function with an auto return value is actually a template, and unused templates won't be put into a dll.