Python wrapper for C++

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Post Reply
hitectahir
Cadet
Posts: 1
Joined: Fri May 02, 2003 11:39 am

Python wrapper for C++

Post by hitectahir »

AoA
I am tryin to build a Python wrapper for a C++-based program. Earlier i was using CXX (from sourceforge.net) for this purpose but it kept giving me linking (presumably) errors such as
undefined symbol: cerr
and
undefined symbol: ObjectAlloc__8TStorageui

when i tried to import it in Python.

Then i switched to Boost libraries but again im facing problems in importing after building with Boost (problems of undefined symbol). Can someone guide me in this respect as to how these errors can be possibly removed?

tahir.
fawad
Site Admin
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
Location: Addison, IL
Contact:

Post by fawad »

The de facto standard for generating interfaces to C/C++ code for Perl/Python/TCL etc. is swig. Check it out.
Post Reply