title: templates C++ with GCC
body: <p>I'm trying to port C++ windows application to Linux. And i have promlems. I don't know how to explain it correctly, but i'll try.</p>
  
  <p>I have next code:In header file:</p>
  
  <pre><code>    template&lt;typename bidtype,typename chartype&gt;
  class pst_appointment_impl :
      virtual public pst_appointment,
      public pst_message_impl&lt;bidtype,chartype&gt;
  {
  ...
  }
  </code></pre>
  
  <p>In cpp file(and there are my problems):</p>
  
  <pre><code>...
  template pst_appointment_impl&lt;DWORD, char&gt;;
  template pst_appointment_impl&lt;DWORDLONG,wchar_t&gt;;
  </code></pre>
  
  <p>I don't know, how it calls exactly, but VS2010 compile it well. 
  BUT, in linux, GCC gives errors "Syntax error" on this last two lines.</p>
  
  <p>Any ideas how to fix this?</p>
  
  <p>======================================================</p>
  
  <p><strong>[EDITION]</strong></p>
  
  <p>All windows types are defined.
  I'm using Eclipse on linux. It gives errors "cannot resolve name", when there are problems with types, but now: "Syntax error"</p>