【发布时间】:2016-04-05 05:37:32
【问题描述】:
我有如下简单的 c++ 类 //example.h
#include<iostream>
class example
{
public:
int member;
void display(){
std::cout<<"Hello from example class"<<std::endl;
}
};
//我的example.i文件是
%module example
%{
#include "example.h"
%}
%include "example.h"
在此之后我正在运行
pkgs/swig/2.0.8/bin/swig -c++ -perl5 example.i 但我没有看到在 .pm 模块中为我的显示功能定义的包装器由此生成。 任何工作样本都会有很大帮助。
谢谢, 哈里什
【问题讨论】: