Calling C++ external functions.
Andreas Raab
andreas.raab at gmx.de
Fri Jun 3 09:36:59 UTC 2005
> 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
More information about the Squeak-dev
mailing list
|