[squeak-dev] Re: FFI + Windows + Cygwin
siguctua at gmail.com
Fri Jun 20 06:46:41 UTC 2008
2008/6/20 Mariano Martinez Peck <marianopeck at gmail.com>:
> I am sorry, I forgot to tell the real error I have in FFI. When I try to run
> a simple test that uses FFI it call externalCallFailed with a message:
> "unable to find function address".
> thanks in advance,
> On Fri, Jun 20, 2008 at 1:48 AM, Mariano Martinez Peck
> <marianopeck at gmail.com> wrote:
>> Hi everybody. I am developing SqueakDBX a openDBX C library. We are using
>> FFI to call C functions. OpenDBX has always been compiled in linux and mac.
>> But since the last version, it works under Windows using Cygwin or WinGW. I
>> could test the library and works well (in windows). It has been generated
>> the necessary .dlls. The problem is that theese .dlls files are in
>> c:/cygwin/usr/lib/* . And, I can't "see" those functions from FFI.
So, just copy .dll to same dir where image or squeak binary resides.
But i think problem that resulting .dll using some other libraries
which located under that dir.
And to make it working you need to add this dir to PATH environment var.
If i remember this should help.
>> In FFI I am using apicall instead of cdecl (the one I use under linux).
>> I have never work with C under linux.
>> Can someone help me?
Igor Stasenko AKA sig.
More information about the Squeak-dev