Commit 38d70115 authored by Tiago Peixoto's avatar Tiago Peixoto

cppextensions: Fix example code

parent e8be2a92
Pipeline #501 failed with stage
in 462 minutes and 4 seconds
...@@ -107,8 +107,7 @@ organized, we create a :download:`Makefile <Makefile>`: ...@@ -107,8 +107,7 @@ organized, we create a :download:`Makefile <Makefile>`:
:language: make :language: make
:linenos: :linenos:
(If you use MacOS, the file object file should be named (If you use MacOS, you may want to use a different compiler such as
``libkcore.dylib``, and you may want to use a different compiler such as
``clang++``.) After compiling by typing ``make``, we can import and use ``clang++``.) After compiling by typing ``make``, we can import and use
the ``kcore.py`` module: the ``kcore.py`` module:
......
# We import the C++ module (usually called libkcore.so or libkcore.dylib) import graph_tool
# We import the C++ module (called libkcore.so)
import libkcore import libkcore
# The function below is what will be used from Python, and dispatch to the the # The function below is what will be used from Python, and dispatch to the the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment