MSVC_export_template_bug MSVC DLL exporting class that inherits from template cause LNK2005 already defined error See this question on StackOverflow