I'm currently developing a shared library on Windows (dll)
with c++
.
The library depends on another external library.
What is the best way to link them together?
- Link the external library as a static library into my shared lib?
- Link it as a shared library and provide the
dll
to the application who is using my shared lib?
For the second case what happens if i create an application which uses my own created shared library and also the external library as a shared library?
If for example my shared library is build with the external library version 1.1
and the application uses the newer Version for example 1.3
? Now the dlls
should be different but how could i provide them to the main application?
Are there some best practices or recommendations on how to handle such a situation?