Ryan Brink
05/17/2023, 5:36 PMimport os
import cffi
ffi = cffi.FFI()
header_file = (
"path/to/lib.h"
)
if __name__ == "__main__":
with open(os.path.join(header_file)) as f:
ffi.cdef(f.read())
cffi.CDefError: cannot parse "#ifndef KONAN_LIBRQSWELL_H"
<cdef source string>:1:1: Directives not supported yet
kevin.cianfarini
05/17/2023, 5:40 PMLandry Norris
05/17/2023, 6:36 PMLandry Norris
05/17/2023, 6:37 PMmikehearn
05/18/2023, 9:57 AMRyan Brink
05/18/2023, 10:31 AMmikehearn
05/18/2023, 10:51 AMmikehearn
05/18/2023, 10:51 AMRyan Brink
05/18/2023, 10:55 AMmikehearn
05/18/2023, 11:02 AMmikehearn
05/18/2023, 11:02 AMmikehearn
05/18/2023, 11:04 AM