title: Two or more data types in declaration of 'parameters' using mingw cross compiler under linux
body: <p>I am trying to cross compile some code for windows using MinGw. The code is fairly simple:</p>
  
  <p>Header:</p>
  
  <pre><code>    class DragLabel : public QLabel
      {
  
          Q_OBJECT
  
              public:
                  DragLabel();
                  void fn(QString path, int id, bool small);
      };
  </code></pre>
  
  <p>cpp:
          #include "draglabel.h"</p>
  
  <pre><code>    DragLabel::DragLabel()
      {
         /* Snip ... */
      };
  
      void DragLabel::fn(QString path, int id, bool small)
      {
          (void)d;
      };
  </code></pre>
  
  <p>The example function fails to compile givin me:</p>
  
  <blockquote>
    <blockquote>
      <p>error: two or more data types in declaration of 'parameter'</p>
    </blockquote>
  </blockquote>
  
  <p>for the declaration of fn(QString...).
  [EDIT:] Sorry i forgot to mention that this error happens only if there is the bool variable declared, so the function without:</p>
  
  <pre><code>void fn(QString path, int id);
  </code></pre>
  
  <p>Workes just fine.</p>
  
  <p>It compiles fine using qmake and make under debian linux.</p>
  
  <p>Does anyone know what might happens here?
  Thanks</p>