python - cython char array[] convert 中的 c++ header wrapper 声明

标签 python c++ header-files cython

部分C++头文件:

virtual int SubscribeMarketData(char * ppInstrumentID[], int nCount, char* pExchageID) = 0;

部分*.pxd文件声明:

int SubscribeMarketData(char *ppInstrumentID[], int nCount, char *pExchageID) except +

但我无法确定一些 C++ char * ppInstrumentID[] 代码在 cython 中的声明。 什么是正确的代码声明?
*.pyx 文件中怎么样?

最佳答案

cdef char[] *thing

这种方式实际上更有意义,但在两者之间工作会让人感到困惑(尤其是当错误消息使用 C 的形式时!)。

关于python - cython char array[] convert 中的 c++ header wrapper 声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25978036/

相关文章:

python - 获取 HTTP 请求的 TTFB(到第一个字节的时间)

c++ - 为什么在 const 指针中进行非法结构操作?

对于更大的应用程序,我可以只使用一个 header 吗?

c++ - 在 Ubuntu 中包含 OpenCv 头文件

python - 使用 "Biopython"- 我怎样才能改进我的代码

线程和图形用户界面应用程序之间的 Python 新样式信号和槽

c++ - SSE2 指令在 C++ 的内联汇编中不起作用

c++ - SDL_Mixer 是否可以在自身上播放单个 block ?

c++ - 头文件包含静态分析工具?

python - 可扩展项目的 graphql 代码组织