Expected constructor, destructor, or type conversion before '=' token
<p>I have some <code>extern</code>'d variables in a namespace in a header file, and I'm trying to initialize them in its corresponding cpp file. However, I keep getting the error given in the topic title. I'm not sure what the problem is.</p>

<p>EX:</p>

<pre><code>// Some header
namespace foo
{
    extern SDL_Surface* bar;
}

// In the impl file
#include "someheader.h"
foo::bar = 0;
.....
</code></pre>

<p>Any assistance is appreciated. Thanks.</p>
