<br><div class="gmail_quote">2008/6/20 Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">On Fri, Jun 20, 2008 at 1:26 PM, Igor Stasenko <<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>2008/6/20 Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>>:<br>
><br>
><br>
> On Fri, Jun 20, 2008 at 3:46 AM, Igor Stasenko <<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>> wrote:<br>
>><br>
>> 2008/6/20 Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>>:<br>
>> > I am sorry, I forgot to tell the real error I have in FFI. When I try to<br>
>> > run<br>
>> > a simple test that uses FFI it call externalCallFailed with a message:<br>
>> > "unable to find function address".<br>
>> ><br>
>> > thanks in advance,<br>
>> ><br>
>> > mariano<br>
>> ><br>
>> ><br>
>> > On Fri, Jun 20, 2008 at 1:48 AM, Mariano Martinez Peck<br>
>> > <<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>> wrote:<br>
>> >><br>
>> >> Hi everybody. I am developing SqueakDBX a openDBX C library. We are<br>
>> >> using<br>
>> >> FFI to call C functions. OpenDBX has always been compiled in linux and<br>
>> >> mac.<br>
>> >> But since the last version, it works under Windows using Cygwin or<br>
>> >> WinGW. I<br>
>> >> could test the library and works well (in windows). It has been<br>
>> >> generated<br>
>> >> the necessary .dlls. The problem is that theese .dlls files are in<br>
>> >> c:/cygwin/usr/lib/* . And, I can't "see" those functions from FFI.<br>
>> >><br>
>><br>
>> So, just copy .dll to same dir where image or squeak binary resides.<br>
>> But i think problem that resulting .dll using some other libraries<br>
>> which located under that dir.<br>
>> And to make it working you need to add this dir to PATH environment var.<br>
>> If i remember this should help.<br>
><br>
> Ok. I'll try this. I am sorry for my newbie questions, but I have never<br>
> program C in windows. When I compiled openDBX with cygwin, it generated<br>
> thees files libopendbx.a , <a href="http://libopendbx.la" target="_blank">libopendbx.la</a> y libopendbx.dll.a<br>
><br>
> I mean, there isn't a real XXX.dll so that windows can find it. Is this ok?<br>
><br>
<br>
</div></div>why not just build a .dll with mingw tools?</blockquote></div></div><div><br><br>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.<br>
<br>Why do you think I could use MinGW? which are the difference between them (MinGW and Cygwin) ?</div></div></blockquote><div><br><a href="http://en.wikipedia.org/wiki/MinGW#Comparison_with_Cygwin">http://en.wikipedia.org/wiki/MinGW#Comparison_with_Cygwin</a><br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div><br><br>I am asking just because I don't know. <br>
<br>very thanks,<br><font color="#888888"><br>Mariano<br><br> </font></div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<a href="http://sourceforge.net/projects/mingw/" target="_blank">http://sourceforge.net/projects/mingw/</a><br>
<div><br>
> very thanks,<br>
><br>
> mariano<br>
><br>
><br>
><br>
><br>
><br>
><br>
>><br>
>> >> In FFI I am using apicall instead of cdecl (the one I use under linux).<br>
>> >><br>
>> >> I have never work with C under linux.<br>
>> >><br>
>> >> Can someone help me?<br>
>> >><br>
>> >> thanks,<br>
>> >><br>
>> >> Mariano<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Best regards,<br>
>> Igor Stasenko AKA sig.<br>
>><br>
><br>
><br>
><br>
><br>
><br>
<br>
<br>
<br>
</div>--<br>
<div><div></div><div>Best regards,<br>
Igor Stasenko AKA sig.<br>
</div></div><br><br>
<br></blockquote></div></div><br>
<br><br>
<br></blockquote></div><br>