Thanks for your support on this wysota.

So, from my understanding, neither the INCLUDEPATH nor the LIBS variables tell the exe where to look for the dll.

If that is the case, then I can think of two solutions. Please let me know which one you think is most viable;

  1. Option 1
    I can change the .pro of the library project. Here I change the TARGET variable from
    Qt Code:
    1. TARGET = test2Library
    To copy to clipboard, switch view to plain text mode 
    to
    Qt Code:
    1. debug:TARGET = ../../../mainProject/debug/test2Library
    To copy to clipboard, switch view to plain text mode 

    In this solution, the dll is placed directly into the mainProject folder with the mainProject.exe. This will become a problem if I want to use the same dll with multiple applications. I would need to create a copy of the dll in each of the application folders.
  2. Option 2
    In option two, I can simply add the directory of the dll to my system PATH. However, this will get messy after a while if I keep adding to my PATH for each dll project I create.


Can you tell me if there is a third solution? Surely I can add the linker paths in QT as I did it quite often in MS Visual Studio.

Again, thanks again for taking the time to help out a newbie on this.

All the best,
Mick