<a href="mailto:squeak-dev@lists.squeakfoundation.org"></a><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/squeak-dev" target="_blank"></a><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
if you are using windows for a function to be used with FFI ou have to export it adding &quot;__declspec( dllexport )&quot; in front of all the exported functions in your C source.  if you want to get the inline functions of the openCV dll , you will have to go to the source of that dll and then export, wrapping a open source  dll in a new dll does not make sense you can change the original sources. <br>
</blockquote><div>
good luck.<br>  Kemal<br>
&gt; Depanage informatique http://<a href="http://je-resous.fr/" target="_blank">je-resous.fr/</a><br> 
<br></div><div> </div><div> </div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
I&#39;m working in windows. If you are right then I think the only way to access<br>
the inline functions from Squeak (without recompiling the OpenCV dlls) is to<br>
compile a new dll which calls the inline functions and access this new dll<br>
from squeak. I will try that. Thanks!<br>
<br>
<br>
&gt;<br>
&gt; I don&#39;t have much of answers for you  :<br>
&gt; but for<br>
&gt;<br>
&gt; &gt;* 3)      Some OpenCV functions are declared as inline functions. I haven’t*&gt;* been able to access those functions from Squeak. Is this an expected*&gt;* behavior?*<br>
&gt; for FFI to work you have to export your functions in the shared library, so<br>
&gt; they can be called in your shared library, and this is process is platform<br>
&gt; dependent. beleive you are compiling with gcc on gnu/Linux please confirm if<br>
&gt; not please let  me know the platform .<br>
&gt;<br>
&gt;  I don&#39;t see why inline function will be exported by default they are &quot;just&quot;<br>
&gt; used in the preprocess and at compilation time they are not regular<br>
&gt; functions. So what you found should be usual behavior.<br>
&gt;<br>
&gt; good luck.<br>
&gt; Kemal<br>
&gt; Depanage informatiquehttp://<a href="http://je-resous.fr/" target="_blank">je-resous.fr/</a><br>
&gt;<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090515/45ec878f/attachment-0001.htm" target="_blank">http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090515/45ec878f/attachment-0001.htm</a><br>

<br>
------------------------------<br></blockquote></div><br>