<div>I think this article provides good explanation of complexities you may face with STL classes as well as possible solution for the problem.</div><div> </div><div><a href="https://www.codeproject.com/Articles/28969/HowTo-Export-C-classes-from-a-DLL)">https://www.codeproject.com/Articles/28969/HowTo-Export-C-classes-from-a-DLL)</a></div><div> </div><div>In short all classes anyhow related to exported class are to be explicitly exported as well including alocators, iterators and inner classes related to implementation.</div><div> </div><div> </div><div>Regards,</div><div>Serge Preis.</div><div> </div><div> </div><div>10.11.2017, 12:47, "barbara via cfe-dev" <cfe-dev@lists.llvm.org>:</div><blockquote type="cite"><p><br />We have a contributor who is working on porting CopperSpice to compile<br />with MSVC 2017 and/or the clang Windows ABI compatible tool chain. There<br />seems to be a potential problem and we are not sure if this is serious.<br />Options: some wonderful person points us to a workaround, there is a<br />decent solution using the clang front end, jump up and down and hope MS<br />will correct this.<br /><br />In our library we have a templated class with a data member whose type<br />is std::deque<T>. This class is in "lib_a.dll" and is used in<br />"lib_b.dll" and the main executable.<br /><br />We have read/been told the following: "The only STL container that can<br />currently be exported is std::vector. The other containers ( map, set,<br />queue, list, deque) all contain nested classes and can not be exported."<br />So according to MSDN docs it is impossible to export the STL<br />containers, like deque. Does this limitation exist in clang when using<br />the MSVC compatible ABI on Windows?<br /><br />Something does not add up here and I will admit I am not sure I fully<br />understand the problem. Our hope is that someone can see through this<br />issue and help us define the real problem and offer a suggestion.<br /><br />Any ideas or a potential direction is appreciated.<br /><br /><br />Barbara<br /><br />---<br />This email has been checked for viruses by Avast antivirus software.<br /><a href="https://www.avast.com/antivirus">https://www.avast.com/antivirus</a><br /><br />_______________________________________________<br />cfe-dev mailing list<br /><a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br /><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a></p></blockquote>