title: error C2143: syntax error : missing ';' before '*' (haven't found solution)
body: <p>There's a compile error in my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;vector&gt;
  #include "command.h"
  
  extern std::istream *instream;
  extern std::vector&lt;command&gt; commands;
  </code></pre>
  
  <p>Here is command.h header file:</p>
  
  <pre><code>#define CMD_RETURN_TYPE_NONE 0
  #define CMD_RETURN_TYPE_STRING 1
  #define CMD_RETURN_TYPE_CHAR 2
  #define CMD_RETURN_TYPE_INT 3
  class command {
      public:
          virtual int getReturnType(void);
          virtual char getOpName(void);
          virtual void* call(void);
  }
  </code></pre>
  
  <p>throws next compile error</p>
  
  <pre><code>1&gt;------ Build started: Project: MyFirstCPPApp, Configuration: Debug Win32 ------
  1&gt;Compiling...
  1&gt;MyFirstCPPApp.cpp
  1&gt;e:\anton\msvc++ projects\myfirstcppapp\myfirstcppapp\MyFirstCPPApp.h(5) : error C2143: syntax error : missing ';' before '*'
  1&gt;e:\anton\msvc++ projects\myfirstcppapp\myfirstcppapp\MyFirstCPPApp.h(5) : error C2377: 'std::istream' : redefinition; typedef cannot be overloaded with any other symbol
  1&gt;        E:\Anton\MSVS2008Express\VC\include\iosfwd(707) : see declaration of 'std::istream'
  1&gt;e:\anton\msvc++ projects\myfirstcppapp\myfirstcppapp\MyFirstCPPApp.h(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  1&gt;.\MyFirstCPPApp.cpp(4) : error C2039: 'get' : is not a member of 'System::Int32'
  1&gt;        c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : see declaration of 'System::Int32'
  1&gt;.\MyFirstCPPApp.cpp(7) : error C3861: 'callCmd': identifier not found
  1&gt;.\MyFirstCPPApp.cpp(11) : error C2440: '=' : cannot convert from 'std::istream *' to 'int *'
  1&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  1&gt;Build log was saved at "file://e:\Anton\MSVC++ Projects\MyFirstCPPApp\MyFirstCPPApp\Debug\BuildLog.htm"
  1&gt;MyFirstCPPApp - 6 error(s), 0 warning(s)
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>I haven't found solution, how to fix it?</p>