title: problems when including a header file
body: <p>So i'm having a problem when i try to include a header file. I am defining a header and including it in all of my files but i'm getting this error "unresolved external symbol "void_cdecl print(void)"(?print@@YAXXZ) referenced in function main.</p>
  
  <p>my main file TEST.cpp </p>
  
  <pre><code>#include "stdafx.h"
  #include "Header1.h"
  using namespace std;
  int main()
  {
      print();
      return 0;
  }
  </code></pre>
  
  <p>i've only made a simple print function which i define here in Source1.cpp</p>
  
  <pre><code>#include "Header1.h"
  
  void print() {
      cout &lt;&lt; "HELLO WORLD" &lt;&lt; endl;
  }
  </code></pre>
  
  <p>and my header file looks like this - Header1.h</p>
  
  <pre><code>#pragma once
  #ifndef HEADER1_H
  #define HEADER1_H
  
  void print();
  #endif
  </code></pre>
  
  <p>I did some research i found that this problem is often caused by spelling mistakes but i really cant see it.</p>