My project builds through few static libraries which should linked to main dll library gain one single dll as a result.
Using __declspec(dllexport) attribut
__declspec(dllexport)
Here Raymond Chan explains this behavior and the best solution is really just to use def file. As for how to generate it automatically for static a library - this discussion looks like a good starting point.