Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
42b2984a
Commit
42b2984a
authored
Jan 13, 2018
by
Myles Hollowed
Committed by
GitHub
Jan 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrapping_CPlusPlus.rst
Add a section for building the extension, and running a test import
parent
6eb018b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
docs/src/userguide/wrapping_CPlusPlus.rst
docs/src/userguide/wrapping_CPlusPlus.rst
+13
-0
No files found.
docs/src/userguide/wrapping_CPlusPlus.rst
View file @
42b2984a
...
...
@@ -290,6 +290,19 @@ instance.
If you prefer giving the same name to the wrapper as the C++ class, see the
section on :ref:`resolving naming conflicts <resolve-conflicts>`.
Compilation and Importing
=========================
Run ``$python setup.py build_ext --inplace``
Create :file:`test_import.py`:
::
import rect
x0, y0, x1, y1 = 1, 2, 3, 4
rect_obj = rect.Rectangle(x0, y0, x1, y1)
print(dir(rect_object))
Advanced C++ features
======================
...
...
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