The MS solution to your problem is called side-by-side assemblies.
In a nutshell, it is the "manifest file" mechanism that we all know (and hate:). You need to add the name of the dependant dll to the manifests embedded within the dlls dependant upon it.
There is some (completely opaque) discussion about manifests here. And some reference material for the mt.exe tool here.
Whether Mt.exe work with Mingw-built dlls? Probably, but I don't know for sure.
In reply to Re: [OT][Win32] How to load the right dll
by BrowserUk
in thread [OT][Win32] How to load the right dll
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |