FFI question

Andreas Raab andreas.raab at gmx.de
Mon May 3 16:26:54 UTC 2004


> Another approach would be to turn off mangling explicitly for all
> functions that you want to export to the FFI.  Declare their prototypes
> up-front inside an 'extern "C" { ... }' section, before defining them.
> This would be far more portable than attempting to predict how the C++
> compiler will mangle your symbols.

Wait a second - isn't name mangling standardized? I cannot imagine how you'd
link against a C++ library if each compiler mangles the name in the way she
wants to...

Cheers,
  - Andreas




More information about the Squeak-dev mailing list