title: float* already defined in Gameobject.obj
body: <p>I have a header file that defines 2 arrays</p>
  <pre><code>//GeometricPrimitives.h
  #ifndef GEOMETRIC_PRIMITIVES_H
  #define GEOMETRIC_PRIMITIVES_H
  #include &lt;gl/glew.h&gt;
  
  GLfloat cubeVerts[] = {
      //UP
       0.5, 0.5, -0.5,
       0.5, 0.5,  0.5,
      -0.5, 0.5,  0.5,
      -0.5, 0.5, -0.5,
  
      //DOWN
       0.5, -0.5, -0.5,
       0.5, -0.5,  0.5,
      -0.5, -0.5,  0.5,
      -0.5, -0.5, -0.5,
  
      //LEFT
      -0.5,  0.5, -0.5,
      -0.5,  0.5,  0.5,
      -0.5, -0.5,  0.5,
      -0.5, -0.5, -0.5,
  
      //RIGHT
      0.5,  0.5, -0.5,
      0.5,  0.5,  0.5,
      0.5, -0.5,  0.5,
      0.5, -0.5, -0.5,
  
      //FRONT
      -0.5,  0.5, 0.5,
       0.5,  0.5, 0.5,
       0.5, -0.5, 0.5,
      -0.5, -0.5, 0.5,
  
      //BACK
      -0.5,  0.5, -0.5,
       0.5,  0.5, -0.5,
       0.5, -0.5, -0.5,
      -0.5, -0.5, -0.5,
  };
  
  GLbyte cubeIndices[] = {
      1,2,3, 3,4,1,
      5,6,7, 7,8,5,
      9,10,11, 11,12,9,
      13,14,15, 15,16,13,
      17,18,19, 19,20,17,
      21,22,23, 23,24,21
  };
  #endif // !GEOMETRIC_PRIMITIVES_H
  </code></pre>
  <p>And file that includes it</p>
  <pre><code>//Mesh.h
      #pragma once
  #include &lt;gl/glew.h&gt;
  #include &lt;SDL_opengl.h&gt;
  #include &lt;gl/GLU.h&gt;
  #include &quot;ShaderProgram.h&quot;
  #include &quot;GeometricPrimitives.h&quot;
  class Mesh
  {
  
  public:
      Mesh();
  
      void bind(ShaderProgram* program);
      void init();
      void render();
  private:
      GLuint vao;
      GLuint vbo;
      GLuint ibo;
  
      GLfloat* vertices;
      int verticesCount;
      GLbyte* indices;
      int indicesCount;
  };
  </code></pre>
  <p>Mesh.h is included in GameObject.h which is included in main.cpp.
  When i compile i get error <code>Error   LNK2005 &quot;float * cubeVerts&quot; (?cubeVerts@@3PAMA) already defined in GameObject.obj</code></p>
  <p>I read that this comes from the issue that the file gets added multiple times  in different obj-s and then those get merged together giving the multiple definitions. How can i create this header with these static values and use them where i need them ?</p>