title: Failed to link openssl to Qt
body: <p>I have started a project with Qtcreator on linux. This project uses the Openssl library to work.
  So In my .pro file I have added theses lines :</p>
  
  <pre><code>LIBS    += -lssl
  LIBS    += -lcrypto
  </code></pre>
  
  <p>So on linux it works perfectly.</p>
  
  <p>But, I have to continue my project on windows. I had to install Openssl with cygwin, I have chosen this package : "cygwin32-openssl-1.0.1e-1.tar.bz2" because I compile in 32bits.</p>
  
  <p>I have created a sub-repertory, named libs, in my program folder and I put the three openssl folders (bin, include and lib) in my "libs" repertory.</p>
  
  <p>The content of the lib directory is :</p>
  
  <pre><code>libcrypto.a
  libcrypto.dll.a
  libssl.a
  libssl.dll.a
  pkgconfig/libcrypto.pc
  pkgconfig/libssl.pc
  pkgconfig/openssl.pc
  </code></pre>
  
  <p>In the bin directory I have 2 .dll, cygcrypto-1.0.0.dll and cygssl-1.0.0.dll</p>
  
  <p>I added in my .pro file these lines :</p>
  
  <pre><code>LIBS    += -lssl
  LIBS    += -lcrypto
  LIBS    += -L"$$PWD/libs/openssl/lib/"
  INCLUDEPATH += $$PWD/libs/openssl/include/
  </code></pre>
  
  <p>If I change -L"$$PWD/libs/openssl/lib/" by -L"$$PWD/libs/openssl/bin/", the compilator don't recognized the -lssl and -lcrypto options.</p>
  
  <p>QtCreator recognized the headers files (for example ) and when I compile, no error occurred.</p>
  
  <p>But when I launch my program, it doesn't work and no error appears.
  So I put a breaking point at the begining of my main function, and I re-launch the program. After that a little window indicates to me this error :</p>
  
  <blockquote>
    <p>Executable failed: During startup program exited with code 0xc0000135</p>
  </blockquote>
  
  <p>I use Qt 5.4.0 and Mingw 32bits</p>
  
  <p>I don't undertsand why it doesn't work. Can you help me please ?
  Thank you.</p>