Hey all,

I really would like to use cFFI to build a embedded uWSGI application and library. Is there a way I could use the libuwsgi.so shared library with cFFI ?


Regards,

Etienne


Le 2017-12-24 à 06:01, Etienne Robillard a écrit :
Hi,

I'm trying to build the libuwsgi.so shared library with cFFI:

from cffi import FFI

ffi = FFI()

ffi.cdef(open('uwsgi.h').read())

lib = ffi.dlopen('./libuwsgi.so')

% python ffi_build.py

But then I get error:

cffi.error.CDefError: cannot parse "#ifdef __cplusplus"


Any help would be appreciated!

Etienne


--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/

_______________________________________________
uWSGI mailing list
uWSGI@lists.unbit.it
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to