亲爱的,我使用SWIG生成到C++ API的Python (而且它工作得很好!)但是,我很难包装一个函数,这个函数的参数是枚举向量。为了简化调试,我构建了一个最小的示例,我将其作为这个问题的附件。可执行文件不会引发任何错误,可以运行Python Run方法,但不能使用输出值状态,引发错误:
status: (<Swig Object of type 'testing::Status *' atmemory l
我正在开发一个用C++编写的Python加速器模块。它是Dijkstra算法的实现,并最终返回一个指向Route对象的指针,而该对象又包含一个std::list<struct waypoint>。Object of type 'Route *' at 0x7f6ab39ff4e0> ><mod.Waypoints; proxy of <Swig Object of<Swig Object of <e
:146051:3: error: unknowntype name 'const_iterator'; did you mean 'std::_Bit_const_iterator::const_iterator(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags)(ptr, type, flags) S