Missing type specifer error
<p>I've got problem while including header files, in every header file i use </p>

<pre><code>#pragma once
</code></pre>

<p>File structure:</p>

<pre><code>Main.cpp  
- includes  
  Main.h  
  class definition

Main.h
- includes   
  "class.h"  
  "random_header.h"  
  others ( windows , fstream )  
  class declaration

Class.h
- includes
  "Main.h"
  class cApplication{ };

Other headers ( class, random_header ) include Main.h
</code></pre>

<p>errors in Main.h at class declaration:</p>

<pre><code>error C2146: syntax error : missing ';' before identifier 'App' ( App is class name )
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
</code></pre>

<p>I'll be thankfull for any help/tips.  </p>

<p>Main.h code</p>

<pre><code>#pragma once

#pragma comment (lib, "d3d9.lib")
#pragma comment (lib, "d3dx9.lib")

#include &lt;Windows.h&gt;
#include &lt;d3d9.h&gt;
#include &lt;d3dx9.h&gt;

#include &lt;fstream&gt; 

using namespace std;

#include "D3Ddefs.h"
#include "cApplication.h"

extern cApplication App; //error

LRESULT CALLBACK WindowProcedure(HWND,UINT,WPARAM,LPARAM);
</code></pre>

<p>Ok, theres more code as you asked, in my opinion posting whole thing is a bit pointless (if it isn't, tell me please), so I'll just add this what should be important.</p>

<p>Main.cpp</p>

<pre><code>#include "Main.h"

cApplication App;

int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPreviousInstance,LPSTR lpcmdline,int nCmdShow)
{ ... }
</code></pre>

<p>D3Ddefs.h ( full )</p>

<pre><code>#pragma once

#include "Main.h"

#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ | D3DFVF_DIFFUSE)

struct D3DVERTEX
{
float fX,
      fY,
      fZ;
DWORD dwColor;
};
</code></pre>

<p>cApplication.h</p>

<pre><code>#pragma once

#include "Main.h"

class cApplication
{
private:
...
};
</code></pre>

<p>cApplication.cpp</p>

<pre><code>#include "cApplication.h"


cApplication::cApplication(void)
{ ...
}
</code></pre>
