¡@

Home 

python Programming Glossary: fc.cpp

Simple wrapping of C code with cython

http://stackoverflow.com/questions/3046305/simple-wrapping-of-c-code-with-cython

steps python f setup.py build_ext inplace turns f.pyx and fc.cpp f.so a dynamic library python test f.py import f loads f.so.. compile and link cython f.pyx f.cpp compile f.cpp and fc.cpp link f.o fc.o f.so a dynamic lib that python import f will load... cplus f.pyx f.cpp # see cython h g c ... f.cpp f.o g c ... fc.cpp fc.o cc lib f.o fc.o dynamic library f.so . Modify the cc lib..