In my application I have to explicitly link to a dll. The application is in QT with gcc compiler.
The dll the application have to link to is a wrapper around another old dll. The purpose is to fit the old dll to a new interface.
I use implicit linking when compiling the new dll. The new dll is compiled with msvc 2008. The reason is that the old dll has c++ class functions which can't be recognized by gcc. The new interface uses c functions.
So the big picture is that when I run my application I link the new dll and the new dll depends on the old dll. Everything works fine, except that I have to put the old dll in the same folder as the exe or the same folder as the .pro file.
I tried to add the old library into the application's qt .pro file but didn't work. Is there any way I can move the directory of the old dll file?
Thanks in advance
Gooly
To state more clearly, If the old dll and application are compiled with the same compiler, I could include the path to the old dll and lib in the .pro file and put it any where I want. But now only the new dll recognizes the old dll functions so I could no longer do that. I wonder whether there is a way to modify the path that the exe file searches while running. Now it searches both the exe folder and its parent folder.