title: undefined reference to `_imp__CryptUnprotectData@28' with Crypt32.Lib && wincrypt.h included
body: <p>I have a problem with my one of my projects.<br />
  I use QtCreator with MinGW and Qt 5.4.0</p>
  <p>When I try to compile, this simple line gets me some errors :</p>
  <pre><code>CryptUnprotectData(data.password, NULL, NULL, NULL, NULL, (DWORD) 0, data.uncryptedPassword);
  </code></pre>
  <p>( with DATA_BLOB* data.password and DATA_BLOB* data.uncryptedPassword )</p>
  <p>Gets me :</p>
  <pre><code>undefined reference to `_imp__CryptUnprotectData@28'
  </code></pre>
  <p>As said on the title, I included the Crypt32.Lib file in my .pro :</p>
  <pre><code>QT       += core gui
  QT       += sql
  
  greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  
  TARGET = ChromePass
  
  LIBS += -L$$PWD/ -lCrypt32
  
  TEMPLATE = app
  
  
  SOURCES += main.cpp\
          mainwindow.cpp \
      chromehandler.cpp \
      passdata.cpp
  
  HEADERS  += mainwindow.h \
      chromehandler.h \
      passdata.h
  
  FORMS    += mainwindow.ui
  </code></pre>
  <p>And as instructed in the <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa380882%28v=vs.85%29.aspx" rel="nofollow noreferrer">MSDN api</a>, included wincrypt.h :</p>
  <pre><code>#include &lt;windows.h&gt;
  #include &lt;wincrypt.h&gt;
  #include &lt;cstdlib&gt;
  #include &lt;fstream&gt;
  </code></pre>
  <p>The error being still there, I checked  <code>wincrypt.h</code> to make sure <code>CryptUnprotectData</code> is defined, and it is :</p>
  <pre><code>  WINIMPM WINBOOL WINAPI CryptUnprotectData(DATA_BLOB *pDataIn,LPWSTR *ppszDataDescr,DATA_BLOB *pOptionalEntropy,PVOID pvReserved,CRYPTPROTECT_PROMPTSTRUCT *pPromptStruct,DWORD dwFlags,DATA_BLOB *pDataOut);
  </code></pre>
  <p>I've been trying for the whole day ... does anyone have a clue ?<br />
  Thank you very much !</p>