Sorry Oscar, can never remember to hit reply-to-all for some reason. DLLs load from the system32/wow64 directory first *regardless* of any PATH variables. This was a prior problem I experienced with python being built and there having been openssl dlls within my system directories. It has nothing to do with the path variable. This is documented behavior on MSDN and requires a system call to change the search paths. Ray is correct, although I typically use procmon from the SysInternals Microsoft suite and just filter for dll paths. If you have a dll with the same name as the one a process is trying to load within system32/SysWOW64, it will override any dlls that might be present within PATH.
Here's the URL that describes the behavior: https://msdn.microsoft.com/en-us/library/7d83bc18.aspx Because his zlib.dll file for msys2 doesn't reside in the same directory that conftest.exe is being compiled in, Windows will search the system directories first and then progress along the PATH directories. This is unless a specific call is made to change that behavior (which it is not). On Wed, Mar 23, 2016 at 8:51 AM, Óscar Fuentes <[email protected]> wrote: > Ray Donnelly <[email protected]> > writes: > >> This has nothing to do with LIB. It's the DLL loader on Windows, not build >> time stuff. >> >> Use process hacker 2. Search for DLL handles straight after boot up. See >> which processes loaded the zlib DLL. Find alternatives to that software, >> maybe MSYS2 has some? Uninstall the offending software. Delete the DLL if >> uninstalling didn't do that for you. Install the alternatives. Be happy. >> This is entirely at your own risk. If it goes wrong, you won't be happy I'm >> afraid. > > You seem to imply that if a process loads a dll (let's call it foo.dll), > then other processes will load that same foo.dll even if there is a > different one on the directory where their executables are. Just in > case, I will remark that this is not correct. There can be multiple > copies of foo.dll on the system and the correct one will be picked if > the programs are correctly installed. > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 > _______________________________________________ > Msys2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/msys2-users ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 _______________________________________________ Msys2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/msys2-users
