Hi Alain,<br><br><div class="gmail_quote">On Sun, Oct 31, 2010 at 10:16 AM, Alain_Rastoul <span dir="ltr">&lt;<a href="mailto:alr.dev@free.fr">alr.dev@free.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks Levente,<br>
I have seen lot of discussions about alien FFI, is it what you are talking<br>
about ?<br>
or is there another Cog FFI package somewhere else ?<br></blockquote><div><br></div><div>As Levente explained Cog has a different but compatible implementation.  You should use the source produced by the ReentrantIA32FFIPlugin (which will still produce code in src/plugins/SqueakFFIPrims/SqueakFFIPrims.c and depends on the support code only in <a href="http://www.squeakvm.org/svn/squeak/branches/Cog/platforms/Cross/plugins/SqueakFFIPrims">http://www.squeakvm.org/svn/squeak/branches/Cog/platforms/Cross/plugins/SqueakFFIPrims</a>, not the platform-specigic directories (e.g. platforms/unix/plugins/SqueakFFIPrims platforms/win32/plugins/SqueakFFIPrims which is not used).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Just to mention it, I had to modify some (few minors) incorrect<br>
declarations in sq.h, HostWindowPlugin.h and sqWin32Backtrace.c in order to<br>
compile<br>
with gcc 4.5.<br></blockquote><div><br></div><div>can you send me these changes?</div><div><br></div><div>TIA</div><div>Eliot</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
<br>
&quot;Levente Uzonyi&quot; &lt;<a href="mailto:leves@elte.hu">leves@elte.hu</a>&gt; a écrit dans le message de news:<br>
Pine.LNX.4.64.1010311708110.22213@login03.caesar.elte.hu...<br>
<div><div></div><div class="h5">&gt; On Sat, 30 Oct 2010, Alain_Rastoul wrote:<br>
&gt;<br>
&gt;&gt; Hi<br>
&gt;&gt;<br>
&gt;&gt; I downloaded the Cog trunk , the last FFI version from Monticello, used<br>
&gt;&gt; the<br>
&gt;&gt; workspace script to generate the source and build Cog on Windows with<br>
&gt;&gt; cygwin (gcc 4.5.1).<br>
&gt;<br>
&gt; The Cog VMMaker image includes a different FFI implementation (with<br>
&gt; compatible API), so if you don&#39;t load FFI from <a href="http://source.squeak.org" target="_blank">source.squeak.org</a> then<br>
&gt; you&#39;ll get a working FFI.<br>
&gt;<br>
&gt;<br>
&gt; Levente<br>
&gt;<br>
&gt;&gt; Every thing is ok, but the FFI plugin doesn&#39;t work.<br>
&gt;&gt; When I evaluate Win32Window class&gt;&gt;coloredEllipses<br>
&gt;&gt; I have SmallInteger(Object)&gt;&gt;doesNotUnderstand: #getHDCDuring:<br>
&gt;&gt; Win32Window getFocus evaluates to a integer handle, not a Win32Window.<br>
&gt;&gt; I did<br>
&gt;&gt; (Smalltalk at: #ExternalType) initialize.<br>
&gt;&gt; (Smalltalk at: #ExternalStructure) compileAllFields.<br>
&gt;&gt; and also tryed to build only the plugin with Mingw gcc 2.95.2<br>
&gt;&gt; but I have allways the same problem<br>
&gt;&gt;<br>
&gt;&gt; Is  the FFI plugin functional ? am I missing something ?<br>
&gt;&gt; What version of gcc is ok ?<br>
&gt;&gt; (the make  CC=gcc-3 LD=gcc-3 DLLWRAP=&#39;dllwrap -mno-cygwin --driver-name<br>
&gt;&gt; gcc-3&#39;<br>
&gt;&gt; doesn&#39;t work)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Alain<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>