[Pythonmac-SIG] Extending python in C++
Jack Jansen
Jack.Jansen@cwi.nl
Tue, 10 Dec 2002 11:08:17 +0100
On Tuesday, Dec 10, 2002, at 03:26 Europe/Amsterdam, Matthew Smith
wrote:
> I'm trying to extend python with some C++ source, [...]
>
> void initdemo()
> {
> Py_InitModule("demo", demoMethods);
> }
You need an extern "C" construct for that one, otherwise the symbol
name will be name-mangled according to the C++ rules.
--
- Jack Jansen <Jack.Jansen@oratrix.com>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma
Goldman -