Hi all,

I've created my own shared library and tried to load it dynamically while my small test app is running. Unfortunately it's not working - the lib is not loaded!

In the .pro file for my lib:
Qt Code:
  1. TEMPLATE = lib
  2. CONFIG += dll
  3. TARGET = mylib
To copy to clipboard, switch view to plain text mode 
In the header file for my lib:
Qt Code:
  1. #include <Qt/qglobal.h>
  2.  
  3. #ifdef TEST_LIB
  4. # define TEST_EXPORT Q_DECL_EXPORT
  5. #else
  6. # define TEST_EXPORT Q_DECL_IMPORT
  7. #endif
  8.  
  9. class TEST_EXPORT DBConnection
  10. {
  11. ...
  12. };
To copy to clipboard, switch view to plain text mode 

Is there somthing else what I need to do?

Then in my test app I call the lib:
Qt Code:
  1. QLibrary myLib("mylib");
To copy to clipboard, switch view to plain text mode 
If I check it with
Qt Code:
  1. myLib.isLoaded()
To copy to clipboard, switch view to plain text mode 
then I can see that the lib is not loaded.
Maybe it can't find the lib? Where I have to put my lib that its beeing loaded?

Any help would be great!!
Many thanks and best regrads
big4mil