Using a c struct with FFI
erollo
erollo at etu.info.unicaen.fr
Wed May 21 13:14:34 UTC 2003
We'd like to use a shared library written in c++ under Squeak (actually
it is a library called ODE to manage collisions, joints,... between
physical objects; this work will be used to simulate the atoms of the MAAM
project http://www.univ-ubs.fr/valoria/duhaut/maam/) and we are using the
FFI plugin.
However, we need to use external c structures. We tried to make subclasses
of ExternalStructure as in X11 exemples provided by FFI but we didn't
manage to do it. Can someone help us and give us the correct syntax ?
Thanks.
Emeric Rollo
Jean-Hugues Pruvot
University of Caen, France
More information about the Squeak-dev
mailing list
|