Building libuwsgi module with cFFI

11 views
Skip to first unread message

Etienne Robillard

unread,
Dec 26, 2017, 2:49:28 PM12/26/17
to pytho...@googlegroups.com
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"

Why does this error occur?

Thank you,

Etienne

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

Reply all
Reply to author
Forward
0 new messages