Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ed39cd05
Commit
ed39cd05
authored
Oct 08, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change warning about C++
parent
e5eb5eb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Doc/ext.tex
Doc/ext.tex
+3
-2
Doc/ext/ext.tex
Doc/ext/ext.tex
+3
-2
No files found.
Doc/ext.tex
View file @
ed39cd05
...
...
@@ -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.
...
...
Doc/ext/ext.tex
View file @
ed39cd05
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment