title: Initializing static array of strings (C++)?
body: <p>I can't for the life of me figure out how to do this properly.  I have a class that needs to store some constants (text that corresponds to values in an enum type) - I have it declared like this (publicly) in my class:</p>
  
  <pre><code>const static char* enumText[];
  </code></pre>
  
  <p>And I'm trying to initialize it like this:</p>
  
  <pre><code>const char* MyClass::enumText[] = { "A", "B", "C", "D", "E" };
  </code></pre>
  
  <p>However gcc gives me the following error:</p>
  
  <p>'const char* MyClass::enumText[]' is not a static member of 'class MyClass'</p>
  
  <p>What am I doing wrong?  Thanks!</p>