[Larceny-users] MinGW and the FFI

David Rush kumoyuki at gmail.com
Sun Dec 13 10:32:15 EST 2009


Are there any special things I need to know in order to use the FFI
with MinGW-built DLLs? I've built a DLL using

gcc --version
gcc (GCC) 3.2.3 (mingw special 20030504-1)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and while I appear to be able to load it, the symbols which I put in
the DLL all appear to be unfindable by foreign-procedure. I've used
both the source-code form and the library  form (as reported by nm) of
the names in question and I uniformly get

> (define rtaudio-abort-stream (foreign-procedure "_RTAWAbortStream" '(int) 'void* 'cdecl))


Error: ffi/find-procedure: procedure : _RTAWAbortStream  can't be found.
Entering debugger; type "?" for help.
debug> q


david rush
-- 
GPG Public key at http://cyber-rush.org/drr/gpg-public-key.txt



More information about the Larceny-users mailing list