diff options
author | Guido van Rossum <guido@python.org> | 1995-10-08 00:17:19 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-10-08 00:17:19 (GMT) |
commit | ed39cd05c238ec4a56be80b5a34cccc84b1e72fc (patch) | |
tree | ebba3617e66b9708e529837f4b41bf248d2b6186 /Doc | |
parent | e5eb5eb55e6db966779834ea3bf1018acc843531 (diff) | |
download | cpython-ed39cd05c238ec4a56be80b5a34cccc84b1e72fc.zip cpython-ed39cd05c238ec4a56be80b5a34cccc84b1e72fc.tar.gz cpython-ed39cd05c238ec4a56be80b5a34cccc84b1e72fc.tar.bz2 |
change warning about C++
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/ext.tex | 5 | ||||
-rw-r--r-- | 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. |