Chinaunix首页 | 论坛 | 博客
  • 博客访问: 84165
  • 博文数量: 20
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 120
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-17 16:15
文章分类

全部博文(20)

文章存档

2013年(20)

我的朋友

分类: LINUX

2013-04-05 12:58:23

First, you have to be sure you have gccxml installed in your OS. If not, then you need to visit to download and install it.
Second, you have to install py++ with the pygccxml project in sourceforge .

Now you already have the environment to built an .so file which can be imported into python file.
There are two solutions to extending Python with C++:
1)  execute pyplusplus_gui in a shell, then you have the graphic tool to finish the job.
2) write your own .py code to convert.

Problems:
    1) cannot tell what type the keyword size_t / ssize_t defined for while using namespace std;

阅读(928) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~