title: How to link a header file from the Visual Studio Command Prompt?
body: <p>I am trying to compile and link the following source and the header file </p>
  
  <h2>source.c</h2>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include "source.h"
  
  int main(void)
  {
      three_lines();
  
      return 0;
  }
  </code></pre>
  
  <h2>source.h</h2>
  
  <pre><code> void three_lines(void);
  </code></pre>
  
  <p>using the command as shown below.</p>
  
  <pre><code> cl /W4 /EHsc source.c /link source.h
  </code></pre>
  
  <p>but I get the following error.</p>
  
  <pre><code> Microsoft (R) C/C++ Optimizing Compiler Version 19.14.26433 for x86
   Copyright (C) Microsoft Corporation.  All rights reserved.
  
   source.c
   Microsoft (R) Incremental Linker Version 14.14.26433.0
   Copyright (C) Microsoft Corporation.  All rights reserved.
  
   /out:source.exe
   source.h
   source.obj
   source.h : fatal error LNK1107: invalid or corrupt file: cannot read at 0x61
  </code></pre>
  
  <p>Could someone please guide me on how to fix this?</p>
  
  <p>Many thanks in advance.</p>