On Tue, Mar 14, 2017 at 11:23 PM, Raffaello Giulietti < raffaello.giulie...@lifeware.ch> wrote:
> Hi, > > say I want to directly use a library that depends on other libraries in > different folders. How does UFFI proceed to find these other libraries? > > Is there a way to specify the search folders in UFFI? > > I'm on Windows and in Pharo5/6. > > Greetings > Raffaello > > I assume you mean specifying the search path outside of Pharo. Perhaps call SetDllDirectory via Pharo FFI. (YMMV disclaimer, my knowledge of this is a few minutes searching) SetDllDirectory function https://msdn.microsoft.com/en-us/library/windows/desktop/ms686203(v=vs.85).aspx LoadLibrary function https://msdn.microsoft.com/en-us/library/windows/desktop/ms684175(v=vs.85).aspx Dynamic-Link Library Search Order https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx cheers -ben