Hi!
I’m implementing a C++ class in G-API that needs to call methods defined in a Python object (using ‘PyObject_CallMethod’, ‘Py_XDECREF’, PyGILState etc.).
However, during compilation I get errors like:
‘PyObject’ does not name a type
‘Py_XDECREF’ was not declared in this scope
‘PyGILState_STATE’ was not declared in this scope
I already tried some solutions, but the problem persists. As I’m relatively new to the repository, maybe I’m missing some step, include, Python binding, or CMake config that I’m not seeing.
Can someone give me some feedback on how to correctly include the Python C API in this context?
Thanks!