[racket] Windows FFI Problem

From: Dmitry Pavlov (dpavlov at ipa.nw.ru)
Date: Fri Jan 16 00:22:06 EST 2015


> I am attempting to use this C library I've written with the Racket FFI,
> but (ffi-lib "mylib") reports "The specified module could not be found.;
> errno=126". This only happens on Windows. On Linux the library gets
> loaded properly and I can use it fine. What could be the problem?

The problem could be that some dependent DLL (not mylib itself,
but something it depends on) can not be found in the system.
Try to check the dependencies with depends.exe [1] or just by
grepping all ".dll" names in mylib.dll


Regards,

Dmitry


[1] http://www.dependencywalker.com

Posted on the users mailing list.