title: Visual C++ error LNK2019
body: <p>Okay, So I have always used the <code>gcc</code> compiler. This is my first project with this IDE. My project is organised like this:</p>
  
  <p><code>main.cpp</code> which includes <code>a.h</code>
  <code>a.c</code> which includes <code>a.h</code> and implements the methods declared in <code>a.h</code></p>
  
  <p>When I compiled it I get the following: </p>
  
  <pre><code>1&gt;main.obj : error LNK2019: unresolved external symbol "void __cdecl destroyPlayer(struct player *)" (?destroyPlayer@@YAXPAUplayer@@@Z) referenced in function _main
  1&gt;main.obj : error LNK2019: unresolved external symbol "void __cdecl drawPlayer(struct player *)" (?drawPlayer@@YAXPAUplayer@@@Z) referenced in function _main
  1&gt;main.obj : error LNK2019: unresolved external symbol "void __cdecl movePlayer(struct player *,int *)" (?movePlayer@@YAXPAUplayer@@PAH@Z) referenced in function _main
  1&gt;main.obj : error LNK2019: unresolved external symbol "struct player * __cdecl createPlayer(int,int)" (?createPlayer@@YAPAUplayer@@HH@Z) referenced in function _main
  </code></pre>
  
  <p>These are all the functions in <code>a.h</code>. With the GCC command line I could compile them together. All files are added to the project. Am I missing something?</p>