title: Visual Studio: Build a pure static C++ Library ("no dependencies")
body: <p>I am trying to build a static library as a release others can use (and they should be able to use it whether they debug their own code or not). My library on the other hand should <strong>not</strong> contain any debug symbols or so. I only want to release the headers and the .lib file (no .dll or so).</p>
  <p>The User of the lib should be able to use his runtime-environment and build flavor (debug or release) without any hassle.</p>
  <p>Is this even possible with Visual Studio ?<br>
  [==&gt; I already have read, that some users switch over to build this kind of lib with gcc]</p>
  <p>I have tried several cases and I always get something like &quot;_ITERATOR_DEBUG_LEVEL&quot; conflicts or so. Static linking of the runtime libraries seems not the solution too, but what else ?
  Is it possible to switch off all references and let the project incorporating the library decide what runtime to use ?</p>
  <p>Even if this question is similar to the follwing I haven't found the correct answer there:
  <a href="https://stackoverflow.com/questions/39018250/pure-static-c-library-no-dependency-of-msvc-c-runtime?noredirect=1&amp;lq=1">Pure static C++ Library (no dependency of MSVC C++ runtime)</a>
  or here
  <a href="https://stackoverflow.com/questions/14749662/microsoft-visual-studio-c-c-runtime-library-static-dynamic-linking">Microsoft Visual Studio ~ C/C++ Runtime Library ~ Static/dynamic linking</a></p>