[squeak-dev] External language support

Igor Stasenko siguctua at gmail.com
Thu Dec 4 22:39:12 UTC 2008


2008/12/4 jordi inglada <jordi.inglada at orfeo-toolbox.org>:
> 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.
>

few years ago i used a modified SWIG to generate an Ogre3d bindings
(which is written in C++) for own smalltalk interpreter.
It would be good to have own parser in smalltalk, because SWIG is a hell.

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



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list