title: does not name a type error (using global class)
body: <p>I have to make my class global (know it is not a good style, but I'd like to use my class in other functions too).</p>
  
  <p>After compiling I got following: error: ‘Test_Class’ does not name a type.</p>
  
  <p>Here is the code:</p>
  
  <p>main.cpp:</p>
  
  <pre><code>#include "class_header.h" 
  #include "header.h"
  Test_Class Test1, Test2, Test3;
  
  int main(){
  
  }
  </code></pre>
  
  <p>class_header.h:</p>
  
  <pre><code>#ifndef CLASS_HEADER_H
  #define CLASS_HEADER_H
  
  class Test_Class {
  public:
      int get_a() const;
      int get_b() const;
  private:
      int test_a;
      int test_b;
      int test_c;
  };
  
  #endif // CLASS_HEADER
  </code></pre>
  
  <p>header.h:</p>
  
  <pre><code>#ifndef HEADER_H
  #define HEADER_H
  
  extern Test_Class Test1, Test2, Test3;
  
  void test_source(int a, int b);
  
  #endif // HEADER_H
  </code></pre>
  
  <p>source.cpp:</p>
  
  <pre><code> #include "header.h"
  
   void test_source(int a, int b){
  
   }
  </code></pre>
  
  <p>I defined the class in main, so I don't understand the error message. Thanks for help.</p>