[plt-scheme] Simple ffi problem

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Jun 17 10:00:51 EDT 2006

At Fri, 16 Jun 2006 15:17:46 -0600, Evan Farrer wrote:
> On Fri, Jun 16, 2006 at 05:13:37PM -0400, Eli Barzilay wrote:
> > On Jun 16, Evan Farrer wrote:
> > > I get the following error:
> > > 
> > >     ffi-obj: couldn't get "scheme_security_check_file" from #f (The
> > >     specified procedure could not be found.; errno=127)
> > 
> > Try "_scheme_security_check_file", if that doesn't work then it might
> > be an issue of linking or exposed names on the Windows build.
> 
> I tried "_scheme_security_check_file" and it produces the same error.

Under Windows, I think #f searches only exports of the current
program's ".exe", whereas #f under Unix searches all shared libraries
that are part of the program.

Maybe `ffi-lib' should automatically check the MzScheme DLL when given
#f. Meanwhile, see "mzssl.ss" in the "openssl" collection for code to
find the MzScheme DLL.

Matthew



Posted on the users mailing list.