1、数组定义 使用数组不建议采用指针方式eg double *,或者 double test[4] 直接采用std::vector或list即可。对于固定长度的数组定义为一个结构体 double test[4] instead of struct Vect4D{ double x; double y; double z; double m; } 来源:oschina链接:https://my.oschina.net/u/615762/blog/3159782 标签 swig