title: Compile C in Visual Studio 2012 without MSVCRT runtime
body: <p><strong>Visual Studio 2012</strong> (and earlier versions) are capable of compiling C code. <strong>Plain C</strong>, not C++. It would be a good feature if you wanted to avoid the runtime hazzle. I thought of compiling plain C binaries and was hoping to do so <strong>without</strong> the <strong><code>MSVCRT</code></strong> runtime.</p>
  
  <p>After adding the <code>/TC</code> (compile as C) option I was hoping to get a binary with only basic dependencies such as kernel32 and ntdll. But instead, this was linked:</p>
  
  <p><img src="https://i.stack.imgur.com/CLJ2Z.png" alt="enter image description here"></p>
  
  <p>We want to use VS 2012 and <em>not</em> the runtime. The GCC compiler doesn't need it, so there must be a way to compile a "simple" binary in VS, too. We don't necessarily need complex string functions or date/time libraries, just simple code.</p>
  
  <p><strong>Question:</strong> Is it possible to compile C code in Visual Studio 2012 without the MSVCRT runtime (or even C++ code) ?</p>
  
  <p>Edit: <em>without</em> static linking (<code>/MT</code>)</p>