Python and C++

K

KraftDiner

What ways can I call my C++ classes from within Python.
I've looked at boost but it would appear that there is little
support or knowledge on boost in the python community.
 
R

Roman Yakovenko

What ways can I call my C++ classes from within Python.
I've looked at boost but it would appear that there is little
support or knowledge on boost in the python community.

It is not true! I am sure that if you ask you questions on
boost.python mailing list
you will get the answers.
 
R

Roman Yakovenko

If you want to write Python wrappers for C++ code *by hand*, look
here:

http://docs.python.org/ext/ext.html
http://docs.python.org/api/api.html

If you want to generate wrappers for C++ code (or C code) with
SWIG, look here:

http://www.swig.org/

Boost.Python also has code generators: Pyste and pyplusplus(
http://language-binding.net/pyplusplus/pyplusplus.html )

The last one even has GUI, so for small project you don't have to learn
any API, just few mouse clicks and you have almost working code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top