Error: has initializer but incomplete type
<p>I am having the problem: has initializer but incomplete type while using struct:</p>

<p>in a hpp file:</p>

<pre><code>class A
{
private:
   struct videoDT;
};
</code></pre>

<p>in a cpp file:</p>

<pre><code>struct A::videoDT
{
  videoDT(int b) : a(b){}

  int a;
};

void test()
{
   struct videoDT test(1);
}
</code></pre>

<p>Then I have the problem:</p>

<p>Error: has initializer but incomplete type</p>

<p>Thanks in advance</p>
