On Tue, Jul 21, 2020, at 10:40 AM, Mark wrote:
> I am trying to create some Rust bindings to IUP using dynamic linking.
> This works fine for iup.{so,dll}.

> But I just wondered if other people had had problems with dynamic 
> loading and if there was another way to do it? Or if anyone has an 
> example in C or C++ or Rust that loads both IUP and IM?

Hi Mark, I make extensive use of runtime dynamic linking via LoadLibrary etc. 
for the Common Lisp bindings I work on. I've not had run into any problems 
inherent to IUP's builds though. Some things to check: Are all your .dlls in 
the same location as your rust executable? If not, are they in the PATH? Are 
you using the MSVC IUP dlls? If so, do you the mscrt140 redistribution dll 
installed? If none of that works, download Process Monitor from Microsoft's 
SysInternals suite and add a filter for your .exe and see what it's doing at 
runtime. It's not always clear from Windows error messages what the root cause 
was.

https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order

Matt


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to