c++visual-studiodll

How to include a library in a dll project in visual studio c++


So I have a project(A) that compiles into a dll file, I then include this dll in another project(B). Now I want to include a library in that dll(A) without having to also include it in the other project(B). How can I do that ?


Solution

  • You could link that library statically inside the project(A) DLL. By doing that the binary produced by the library will be include inside the binary of the DLL, project(B) won't be modified at all (if the usage of the statically library won't impact the interface code of the DLL itself, ie: the header included by the project(B).