My library makes use of std::unordered_map and is also compiled with my dll. My question is; is there a way to keep it out of my dll and link it to the library containing the unordered map?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
unordered_mapis a header only library, there is no binary library that can be linked at runtime that will provide it.Technically you can go out of your way to split the headers into declaration and definition, use the declaration for the dll, and then built a different dll with the explicit template instantiations that you used in the main dll, but that will not remove the need to provide the compiled
unordered_map, but rather split what you have as a single dll it in two.