title: Native Windows API link problem on Qt + win32 + mingw
body: <p>I am trying to use native windows API with Qt using mingw toolset. There are link problems with some functions. What happens? Is this a bug with mingw name mangling?</p>
  
  <pre><code>#ifdef Q_WS_WIN
      HWND hwnd = QWidget::winId();
      HDC hdcEMF  = CreateEnhMetaFile(NULL, NULL, NULL, NULL ) ;
      Rectangle(hdcEMF,100,100,200,200);
      HENHMETAFILE hemf = CloseEnhMetaFile(hdcEMF);
      OpenClipboard(hwnd);
      EmptyClipboard();
      SetClipboardData(CF_ENHMETAFILE,hemf);
      CloseClipboard();
  #else   </code></pre>
  
  <p>The errors:</p>
  
  <p>undefined reference to `CreateEnhMetaFileW@16'</p>
  
  <p>undefined reference to `Rectangle@20'</p>
  
  <p>undefined reference to `CloseEnhMetaFile@4'</p>