How to link custom C (which itself needs special linking options to compile) with Cython?
问题 so I'm trying to create a Cython module which uses a .c file that I've written. That .c file needs a special linking option (to compile it, I need gcc -o mycode mycode.c -lfftw3f ). I could potentially just rewrite my .c file in Cython, but I want to know how to do this. I am using fftw3, and when compiling, you need to use the -lfftw3f option IN ADDITION to #include <fftw3.h> in the .c file if you want to use the float version, which I do. My setup.py looks like the following: from distutils