When linking an executable, if it does not make reference to any of the symbols in one of the DLLs on the link line, will it still depend on that DLL at runtime?
To make the question concrete, suppose I am building an application from Visual Studio project foo
.
Under Project Properties > Linker > Input > Additional Dependencies I have specified bar.lib
, the import library for bar.dll
, even though it is not required to link foo.exe
successfully.
Do I still need to distribute bar.dll
with my application since I have marked it as a linking dependency?