title: How to use tensorflow C API with cl compiler in Windows Comand prompt
body: <p>I have downloaded the tensorflow.dll and include files for windows from the <a href="https://www.tensorflow.org/install/lang_c" rel="nofollow noreferrer">tensorflow site</a> </p>
  
  <p>I only got a .dll file and the header files.</p>
  
  <p>I want to test it using the simple code given on the same page, just printing the tensorflow version number.</p>
  
  <p>I tried compiling with</p>
  
  <pre><code>cl /EHsc try.c /Iinclude /link lib\tensorflow.dll
  </code></pre>
  
  <p>but it doesnt work.
  I discovered that I need a .lib file for it to work. Where or How do I get or generate the .lib file using the cl compiler in the command line?</p>