From: Fred Drake Date: Wed, 10 May 2000 20:36:34 +0000 (+0000) Subject: Oops, better also note that the module initialization function must be X-Git-Tag: v2.0b1~1771 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65e69002a2862cb3000610283b15954c208b7975;p=python Oops, better also note that the module initialization function must be extern "C" for C++. --- diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex index 532331f606..683c11e790 100644 --- a/Doc/ext/ext.tex +++ b/Doc/ext/ext.tex @@ -400,6 +400,8 @@ initspam() } \end{verbatim} +Note that for \Cpp, this method must be declared \code{extern "C"}. + When the Python program imports module \module{spam} for the first time, \cfunction{initspam()} is called. (See below for comments about embedding Python.) It calls