Make DLL dependent to other DLLs (Visual Studio IDE)

Posted by Artefacto on Stack Overflow See other posts from Stack Overflow or by Artefacto
Published on 2009-11-19T14:38:49Z Indexed on 2010/05/14 16:34 UTC
Read the original article Hit count: 205

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about dll