title: How to use both a static and dynamic library in the same project in Visual Studio?
body: <p>I'm creating a C++ executable in Visual Studio, and I'd like to use two dependencies: one is available as a static library, and the other is available as a dynamic library. Is there a way to use both of them?</p>
  <p>In Visual Studio, I usually set the <code>Runtime Library</code> parameter under <code>Code Generation</code> based off of what kind of library I'm using -- either <code>/MT</code> or <code>/MD</code>.  But if one external library is static and the other is dynamic, what's the correct setting?  Is it possible to use one of each, or do I need all of my libraries to be either static or dynamic?</p>