newbie question: python and c++ objects

Moshe Zadka moshez at math.huji.ac.il
Sun Aug 6 02:48:53 EDT 2000


On Sat, 5 Aug 2000, zander wrote:

> Hello All
> 
> I am working on a game engine and I would like use python as my scripting
> language. Basicly I have a large amount of c++ objects (or libraries) and
> usually what I do to produce a new game is to create a c++ program to join
> all the objects the way I would like them to.
> 
> So my question is, is it possible to use c++ libraries in python.If possible
> could you explain how.

See the Extending and Embedding tutorial. Be sure that the main() is
compiled and linked using C++ compiler and linker, and you're quite set
to go. Also, try to have a look at SWIG, CXX and SCXX.

--
Moshe Zadka <moshez at math.huji.ac.il>
There is no IGLU cabal.
http://advogato.org/person/moshez





More information about the Python-list mailing list