Make DLL dependent to other DLLs (Visual Studio IDE)
- by Artefacto
I'm having an inconsistency when compiling a DLL (let's call it x.dll) by calling
cl.exe obj1.obj obj2.obj ... lib1.lib lib2.lib ... /link /out:x.dll /dll /debug
and When using the IDE (which calls link directly, I believe).
Let's say lib1.lib is an import library for lib1.dll. Opening the DLL generated by calling cl.exe in the depency walker shows it depends on lib1.dll. However, when using the IDE, the generated program is smaller and does not depend on lib1.dll. This IDE-generated image makes the program that uses x.dll crash sometimes.
The question is: how do I get the correct behaviour from the IDE?