【发布时间】:2020-11-25 17:18:46
【问题描述】:
我需要将一些 C++ 代码导出到 Python 模块。我有以下代码:
#include <iostream>
#include <string>
#include <vector>
#include "1.h"
#include "2.h"
#include "3.h"
#include "4.h"
#include "5.h"
#include "6.h"
using namespace EXMPL;
int main(int argc, char *argv[])
{
...
return 0;
}
由于我有很多自定义内容,因此处理此问题的首选方法是什么?我是否必须为每个包含制作 .i 接口文件,然后将其添加到主接口文件中?
我应该怎么做?提前致谢!
【问题讨论】: