title: Qt: mingw compiled library does only work with both library.so and library.lib file present
body: <p>I compiled a library using the MinGW toolchain provided with Qt 5.0.2 on Windows. As a result I received a library.so file. First I failed using the library in a Qt application, but now I found out that everything works fine when I make a <em>copy</em> of the <code>liblibrary.so</code> file and call it <code>liblibrary.dll</code> or <code>liblibrary.lib</code> (which is the only file ending supported by the add library wizard in QtCreator).</p>
  
  <p>Now I wonder if this is normal or if I should change something in order not to have both files (which are exact copies). Leaving one away makes the application crash during start up. I added the library as follows to my Qt pro file:</p>
  
  <pre><code>LIBS += -L"../path/to/library" -llibrary
  INCLUDEPATH += $$quote(../path/to/library)
  </code></pre>
  
  <p>EDIT: I compiled the library using the MinGW of Qt, not as Qt project but using mingw32-make and the provided Makefile. As a result I get the <code>liblibrary.so</code>.</p>
  
  <p>EDIT: It seems to work also when renaming the copy to liblibrary.dll instead of .lib. But still, I need two files to make the application work -- the .so and the .dll.</p>
  
  <p>Chris</p>