(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ext/module-defn-example.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ext/building-on-unix.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ext/custom-interps.html| ]]
|
Extending and Embedding the Python Interpreter
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ext/contents.html| ]]
|
|
|
Next: 2.3 Example Up: 2. Building C and Previous: 2.1 Building Custom Interpreters
2.2 Module Definition Options
Several compiler options are supported:
| Option
|
Meaning
|
-C
|
Tell the C pre-processor not to discard comments
|
|
-Dname=value
|
Define a macro
|
|
-Idir
|
Specify an include directory, dir
|
|
-Ldir
|
Specify a link-time library directory, dir
|
|
-Rdir
|
Specify a run-time library directory, dir
|
|
-llib
|
Link a library, lib
|
|
-Uname
|
Undefine a macro
|
Other compiler options can be included (snuck in) by putting them in variables.
Source files can include files with .c, .C, .cc, .cpp, .cxx, and .c++ extensions.
Other input files include files with .a, .o, .sl, and .so extensions.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ext/module-defn-example.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ext/building-on-unix.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ext/custom-interps.html| ]]
|
Extending and Embedding the Python Interpreter
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ext/contents.html| ]]
|
|
|
Next: 2.3 Example Up: 2. Building C and Previous: 2.1 Building Custom Interpreters