[squeak-dev] Re: FFI + Windows + Cygwin

Mariano Martinez Peck marianopeck at gmail.com
Fri Jun 20 20:20:03 UTC 2008


Excellent!!!  Very thanks. As fast as I could, I will test it using WinGW
and I will let you know the results.

thanks a lot,

Mariano

On Fri, Jun 20, 2008 at 1:44 PM, Hernán Morales <hernan.morales at gmail.com>
wrote:

>
> 2008/6/20 Mariano Martinez Peck <marianopeck at gmail.com>:
>
>>
>>
>> On Fri, Jun 20, 2008 at 1:26 PM, Igor Stasenko <siguctua at gmail.com>
>> wrote:
>>
>>> 2008/6/20 Mariano Martinez Peck <marianopeck at gmail.com>:
>>> >
>>> >
>>> > On Fri, Jun 20, 2008 at 3:46 AM, Igor Stasenko <siguctua at gmail.com>
>>> wrote:
>>> >>
>>> >> 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,
>>> >> >
>>> >> > mariano
>>> >> >
>>> >> >
>>> >> > 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.
>>> >
>>> > Ok. I'll try this. I am sorry for my newbie questions, but I have never
>>> > program C in windows. When I compiled openDBX with cygwin, it generated
>>> > thees files libopendbx.a , libopendbx.la y libopendbx.dll.a
>>> >
>>> > I mean, there isn't a real XXX.dll so that windows can find it. Is this
>>> ok?
>>> >
>>>
>>> why not just build a .dll with mingw tools?
>>
>>
>>
>> Igor: Thanks a lot for the answer. Norbert (openDBX author) tell me that
>> openDBX can be compiled with both of them: cygwin and winGW. As I know
>> cygwin I tried with it and not with winGW.
>>
>> Why do you think I could use MinGW? which are the difference between them
>> (MinGW and Cygwin) ?
>>
>
> http://en.wikipedia.org/wiki/MinGW#Comparison_with_Cygwin
>
>
>
>>
>>
>> I am asking just because I don't know.
>>
>> very thanks,
>>
>> Mariano
>>
>>
>>
>>>
>>> http://sourceforge.net/projects/mingw/
>>>
>>> > very thanks,
>>> >
>>> > mariano
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >>
>>> >> >> 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?
>>> >> >>
>>> >> >> thanks,
>>> >> >>
>>> >> >> Mariano
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Best regards,
>>> >> Igor Stasenko AKA sig.
>>> >>
>>> >
>>> >
>>> >
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Igor Stasenko AKA sig.
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080620/eb01f4f7/attachment.htm


More information about the Squeak-dev mailing list