Sage
Developer's Guide
Previous:
4.1 Cython
Up:
4.1 Cython
Next:
4.1.2 Attaching or Loading
4.1.1 Special Pragmas
If Cython code is either attached or loaded as a
.spyx
file or loaded from the notebook as a
%cython
block, the follow pragmas are available:
clang
may be either c or c++ indicating whether a C or C++ compiler should be used
clib
additional libraries to be linked in, the space separated list is split and passed to distutils.
cinclude
additional directories to search for header files. The space separated list is split and passed to distutils.
For example:
#clang C++ #clib givaro #cinclude /usr/local/include/
Sage
Developer's Guide
Previous:
4.1 Cython
Up:
4.1 Cython
Next:
4.1.2 Attaching or Loading
Release 2008.09.17, documentation updated on September 17, 2008.
See
About this document...
for information on suggesting changes.