<br><br><div class="gmail_quote">On Fri, Jun 20, 2008 at 3:46 AM, Igor Stasenko &lt;<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

2008/6/20 Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt;:<br>
<div>&gt; I am sorry, I forgot to tell the real error I have in FFI. When I try to run<br>
&gt; a simple test that uses FFI it call externalCallFailed with a message:<br>
&gt; &quot;unable to find function address&quot;.<br>
&gt;<br>
&gt; thanks in advance,<br>
&gt;<br>
&gt; mariano<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Jun 20, 2008 at 1:48 AM, Mariano Martinez Peck<br>
&gt; &lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi everybody. I am developing SqueakDBX a openDBX C library. We are using<br>
&gt;&gt; FFI to call C functions. OpenDBX has always been compiled in linux and mac.<br>
&gt;&gt; But since the last version, it works under Windows using Cygwin or WinGW. I<br>
&gt;&gt; could test the library and works well (in windows). It has been generated<br>
&gt;&gt; the necessary .dlls. The problem is that theese .dlls files are in<br>
&gt;&gt; c:/cygwin/usr/lib/* . And, I can&#39;t &quot;see&quot; those functions from FFI.<br>
&gt;&gt;<br>
<br>
</div>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.</blockquote><div><br><br>Ok. I&#39;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 <span style="display: block; padding-left: 6em; text-indent: -1em;"><span><span class="nfakPe">libopendbx</span>.<span class="nfakPe">a</span> , <a href="http://libopendbx.la/" target="_blank"><span class="nfakPe">libopendbx</span>.la</a> y <span class="nfakPe">libopendbx</span>.dll.a<span class="nfakPe"><br>
<br></span></span></span><span style="display: block; padding-left: 6em; text-indent: -1em;"><span><span class="nfakPe"></span><span class="nfakPe"></span></span></span>I mean, there isn&#39;t a real XXX.dll so that windows can find it. Is this ok?<br>
<br>very thanks,<br><br>mariano<br><br><br>
<br><br><br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div><div></div><div><br>
&gt;&gt; In FFI I am using apicall instead of cdecl (the one I use under linux).<br>
&gt;&gt;<br>
&gt;&gt; I have never work with C under linux.<br>
&gt;&gt;<br>
&gt;&gt; Can someone help me?<br>
&gt;&gt;<br>
&gt;&gt; thanks,<br>
&gt;&gt;<br>
&gt;&gt; Mariano<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
<br>
</font></blockquote></div><br>