From ed39cd05c238ec4a56be80b5a34cccc84b1e72fc Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 8 Oct 1995 00:17:19 +0000 Subject: change warning about C++ --- Doc/ext.tex | 5 +++-- Doc/ext/ext.tex | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Doc/ext.tex b/Doc/ext.tex index 4819124..963f8ff 100644 --- a/Doc/ext.tex +++ b/Doc/ext.tex @@ -1133,9 +1133,10 @@ the Python user. \section{Writing Extensions in \Cpp{}} It is possible to write extension modules in \Cpp{}. Some restrictions -apply: since the main program (the Python interpreter) is compiled and +apply. If the main program (the Python interpreter) is compiled and linked by the C compiler, global or static objects with constructors -cannot be used. All functions that will be called directly or +cannot be used. This is not a problem if the main program is linked +by the \Cpp{} compiler. All functions that will be called directly or indirectly (i.e. via function pointers) by the Python interpreter will have to be declared using \code{extern "C"}; this applies to all ``methods'' as well as to the module's initialization function. diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex index 4819124..963f8ff 100644 --- a/Doc/ext/ext.tex +++ b/Doc/ext/ext.tex @@ -1133,9 +1133,10 @@ the Python user. \section{Writing Extensions in \Cpp{}} It is possible to write extension modules in \Cpp{}. Some restrictions -apply: since the main program (the Python interpreter) is compiled and +apply. If the main program (the Python interpreter) is compiled and linked by the C compiler, global or static objects with constructors -cannot be used. All functions that will be called directly or +cannot be used. This is not a problem if the main program is linked +by the \Cpp{} compiler. All functions that will be called directly or indirectly (i.e. via function pointers) by the Python interpreter will have to be declared using \code{extern "C"}; this applies to all ``methods'' as well as to the module's initialization function. -- cgit v0.12