title: C++ Struct in Header
body: <p>I am trying to create a simple struct here:</p>
  
  <p>color.h:</p>
  
  <pre><code>#ifndef COLOR_H_
  #define COLOR_H_
  struct Color{
      float r,g,b;
  };
  #endif
  </code></pre>
  
  <p>tile.cpp</p>
  
  <pre><code>#include "color.h"
   void display(int x, int y, int tile_size, Color col){
     glBegin(GL_POLYGON);
     glColor3f(col.r,col.g,col.b);
     ...
  }
  </code></pre>
  
  <p>But I get the following errors:</p>
  
  <p>color.h: 3: color.h: struct: not found</p>
  
  <p>color.h: 4: color.h: float: not found</p>
  
  <p>color.h: 5: color.h: Syntax error: "}" unexpected</p>