diff options
| author | Guido van Rossum <guido@python.org> | 1995-10-08 00:17:19 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1995-10-08 00:17:19 +0000 |
| commit | 3d4e748bfed1bf3ce2e3e20ae23c1fb2bbf6959e (patch) | |
| tree | dde62deade1b5d3b21c0079e9f46f13adf5447d8 /Doc/ext.tex | |
| parent | c4f342e8c969ca2bdd0666e979119152d36ffd51 (diff) | |
| download | cpython-3d4e748bfed1bf3ce2e3e20ae23c1fb2bbf6959e.tar.gz | |
change warning about C++
Diffstat (limited to 'Doc/ext.tex')
| -rw-r--r-- | Doc/ext.tex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/ext.tex b/Doc/ext.tex index 48191246fd..963f8fff9e 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. |
