cython issue: 'bool' is not a type identifier
There's some extra C++ support you need to do. At the top of your .pyx file, add
from libcpp cimport bool
I'd take a look inside that to find the other things you might need, like std::string and STL containers
In order to define boolean
objects in cython, they need to be defined as bint
. According to here: The bint of "boolean int" object is compiled to a c int, but get coerced to and from Cython as booleans.
Example:
cdef bint boolean_variable = True
source: types bint