Storage size of 'var' isn't known
<p>I have a program which works fine under VC++, but is giving me an error under GCC.</p>

<p>within <strong>log.h</strong>:</p>

<pre>
namespace logType {
    enum Enum {
        None = 0,
        Info,
        Warning,
        Error,
    };
    std::string Name[];
}
</pre>

<p>within <strong>log.cpp</strong>:</p>

<pre>

std::string logType::Name[] = {
    "None",
    "Info",
    "WARNING",
    "ERROR"
};
</pre>

<p>This works fine when I compile log.cpp. However, if any other file includes log.h, that file errors out:</p>

<p><code>error: storage size of ‘logType::Name’ isn't known</code></p>

<p>I've tried specifying the array size for Name[] in one or both of the files, but that just changes the error to that of redeclaration.</p>

<p>How do I get this to cooperate under GCC?</p>
