Recently, I try to build my code on windows using Clang on visual studio 2019.
But I found that my exe file cannot load the dll file, when dll locates at a different folder.
Say, file path as:
bin: root/bin/test.exe
lib: root/lib/testlib.dll, testlib.lib.
I can solve it by setting the INSTALL RPATH at the CMakeList.txt for ubuntu.
But for windows, would you mind telling me how I can specify the dll load path for a specific executable at runtime?