We have an external library (Foobar.lib), provided by a customer, that is linked against Qt5Core.dll. We have to use that library in our own code.
In our environment, we use conda and conda-forge provided Qt libraries, and the conda-forge maintainers decided to append the suffix
_conda to all the .lib and .dll files (not sure why), so we end up with Qt5Core_conda.dll in our PATH.
This is a problem because our runtime either does not find Qt5Core.dll, or it loads up Qt5Core.dll and Qt5Core_conda.dll at the same time, which does not work because globals from one library are not seen by the other (notably the QApplication global).
One thing that ocurred to us is to open Foobar.lib and manually change the references from Qt5Core.dll to Qt5Core_conda.dll, however given that the name is larger we would need to add new bytes to the file, which would mess up the addresses inside it (we suspect that if we wanted to reduce the name it would be possible).
We are looking for a way to update/rewrite Foobar.lib to point to Qt5Core_conda.dll instead of Qt5Core.dll, any suggestions?
Our environment is Windows.