无法在cpp python绑定中调用import_Array()方法

无法在cpp python绑定中调用import_Array()方法,python,c++,numpy,Python,C++,Numpy,我试图通过包含\include来调用import\u Array() 下面给出了编译错误 error: 'PyCObject_Check' was not declared in this scope error: 'PyCObject_AsVoidPtr' was not declared in this scope

我试图通过包含
\include
来调用
import\u Array()

下面给出了编译错误

error: 'PyCObject_Check' was not declared in this scope
error: 'PyCObject_AsVoidPtr' was not declared in this scope