title: How to make static linking with C++ standard library?
body: <p>i am has an object file(a.obj) and i am need to get executable(a.exe) file via linker call from command line.
  I am received a.obj file from this program:</p>
  
  <pre><code>#include "stdio.h"
  int main(){
      puts("Hello world");
  }
  </code></pre>
  
  <p>and i am used clang compiler for generating a.obj file with follow up arguments: "clang.exe -c a.cpp".</p>
  
  <p>My problem is using the "puts" method, which is defined in the standard library(may be libvcruntime.lib) and I don't know which arguments to use for linked to the standard library.</p>
  
  <p>My linker this is Microsoft link.exe and me also available the lld linker, from llvm project(it is more preferables).</p>
  
  <p>My global target - this is to get executable file from llvm ir and call lld linker from code but theis other history :)</p>