> On Fri, Sep 11, 2009 at 11:54 AM, Darren Dale <[email protected]> wrote: >> Hello, >> >> I am just learning cython, please bear with me. This is maybe a common >> question, but I didn't recognize it in the documentation or the FAQs. >> How do you make cython definitions available to external C code? For >> example, converting some of numpy's code in numpy/core/src/multiarray >> to cython without affecting the C API? > > Somehow I overlooked: > http://docs.cython.org/docs/external_C_code.html#using-cython-declarations-from-c
I'm not sure if this is useful in the context of NumPy though, because Cython expects to create an entire module, and symbols from one module can't be seen from another. So this is only useful if you have C code which is statically linked into your Cython module. However declaring stuff "public" will keep Cython from mangling it, which is a must. So yes, you need to do this, but it is not sufficient. Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
