[Libreoffice] windows dll search order and cppunit

Caolán McNamara caolanm at redhat.com
Mon Feb 21 07:48:14 PST 2011

So, my understanding on reading
is that there isn't a way to skip/override searching first in
"The directory from which the application loaded." which I believe means

PATH=/local/bin:/path/to/solver/bin && /path/to/solver/bin/cppunit

will cause efforts by something to use LoadLibrary to actually search
first in "/path/to/solver/bin/" seeing as that's where cppunit
physically lives, and not first in "/local/bin" for any .dll "something"
might want to load subsequently.

Which I reckon means that cppunit tests the old "delivered" .dll in
those circumstances and not the local, just-built one. Which is where
failures windows people see that non-windows people don't see are likely
often coming from.

Its a bit of a nuisance, anyone know a good workaround/fix. What comes
to mind for me is to deliver cppunit not into the normal solver/bin dir,
but into e.g. solver/bin/other or something so that it isn't in the same
dir as the delivered .dlls and so will have to rely on PATH to find
them, and so get the expected ones.

Thoughts from the windows people ?


More information about the LibreOffice mailing list