[squeak-dev] External language support
jordi inglada
jordi.inglada at orfeo-toolbox.org
Thu Dec 4 20:43:26 UTC 2008
Thank you all for the answers. I had a look at FANN and even asked the
developer of the Squeak bindings, but, as far as I understand, it is not
easy at all to proceed using FFI.
Since I wanted to wrap a library containing several thousands of classes
using advanced template features, I guess I will have to find another
solution.
Regards,
Jordi
2008/12/1 Joshua Gargus <schwa at fastmail.us>
> Unfortunately, here is currently no direct way to interface directly with
> C++ code (only C code). This is due to the lack of standardization of eg:
> name-mangling between C++ compilers. However, it is still possible to call
> C++ code by wrapping the desired functions in C functions (or rather,
> functions declared as 'extern "C" ').
>
> This should be enough documentation to get you started on the Squeak-to-C
> part:
> http://wiki.squeak.org/squeak/370
>
> Cheers,
> Josh
>
>
>
> jordi inglada wrote:
>
> Hi all,
>
> I am new to Squeak and I would like to know if there is a way to use an
> external C++ API from it. I find the language and the environment very
> interesting and I would like to benefit from some legacy code.
>
> I have been searching on the net for an equivalent of SWIG <
> http://www.swig.org/> for Squeak without success.
>
> Thanks in advance for your help.
>
> Jordi.
>
> --
> Jordi Inglada
> http://pixel-remote-sensing.blogspot.com/
>
> ------------------------------
>
>
>
>
>
>
>
--
Jordi Inglada
http://pixel-remote-sensing.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20081204/35a5e220/attachment.htm
More information about the Squeak-dev
mailing list
|