Add "TEMPLATE = lib" to your project file. If you want your library to be loadable by QLibrary, you also have to make sure that all functions in that library are declared as extern "C":

Qt Code:
  1. extern "C" {
  2. void func1();
  3. void func2();
  4. void func3();
  5. //...
  6. }
To copy to clipboard, switch view to plain text mode