Calling C++ external functions.

François THIMON thimof at iutc3.unicaen.fr
Fri Jun 3 09:46:44 UTC 2005


Quoting Andreas Raab <andreas.raab at gmx.de>:

> > I know functions symbols are not the same for C and C++ libraries but I
> don't
> > know what name I have to use to refer to a function.
>
> That depends on the C++ compiler you are using. Name-mangling is not
> standardized so different compilers have different ways of mangling the
> name. The best way to deal with it is to simply export the names you are
> interested in as
>
> extern "C" {
>    /* put declarations here */
> }
>
> which will avoid name mangling.
>
> Cheers,
>    - Andreas
>
>


Thank you very much!!



More information about the Squeak-dev mailing list