I've a MSVS solution with two C++ projects. Project A is a DLL linked to third-party libraries (tp1.lib and tp2.lib) and it is referenced by project B, the exe. Everything compiles properly, but when I run B.exe I get the error for tp1.dll missing, while I would expect that the relevant portion of the code inside the third-party libraries should have been pulled into my A.dll.
Is this my assumption wrong? If not, I would need for you to know which settings can cause this behaviour. Among other settings, these are those for Project A under Properties>ConfigurationProperties that I guess are relevant:
- General>Configuration Type: Dynamic Library
- C/C++>Additional Include Directories: %path to third-party include files (.h)%
- Linker>General>Additional Library Directories: %path to the third-party libraries (.lib)%
- Linker>Input>Additional Dependencies: tp1.lib; tp2.lib
Then, in A.h I have:
#include "tp1.h"
#include "tp2.h"
and in A.cpp
#include "stdafx.h"
#include "A.h"