title: Creating a .lib file - first time
body: <p>This is my first time creating a .lib file, I have the following C++ .exe project:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  #pragma comment(lib, "mylib.lib")
  
  int myFunction(void);
  
  void main()
  {
      myFunction(); 
  
  } 
  </code></pre>
  
  <p>and another C project (the .lib project)</p>
  
  <pre><code>   int __cdecl myFunction(void)
     {
     }
  </code></pre>
  
  <p>I'm compiling the .lib file "mylib.lib" successfully and putting it into the compilation directory of my exe file but I'm receiving the "error LNK2019: unresolved external symbol" error, am I forgetting something?</p>