Re: How to use a shared library created in cython?

2021-04-12 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Sunday, 11 April 2021 at 20:08:15 UTC, affonso elias ferreira junior wrote: Hi everyone, I'm trying to use a shared library created in Cython. example. [...] I am on my mobile phone, and cannot reproduce. But i see that this cast(int function()) should be cast(int function(int)). Try

How to use a shared library created in cython?

2021-04-11 Thread affonso elias ferreira junior via Digitalmars-d-learn
Hi everyone, I'm trying to use a shared library created in Cython. example. *file run_cython.pyx** cpdef int test(int x): cdef int y = 1 cdef int i for i in range(1, x+1): y *= i return y