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;