[squeak-dev] External language support

Joshua Gargus schwa at fastmail.us
Mon Dec 1 20:30:27 UTC 2008

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:


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/
> ------------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20081201/41db5f02/attachment.htm

More information about the Squeak-dev mailing list