compiling python and calling it from C/C++

Diez B. Roggisch deets at nospam.web.de
Fri Jun 8 03:06:18 EDT 2007


Russ schrieb:
> Is it possible to compile python code into a library (on unix), then
> link to it and call it from C/C++? If so, where can I learn how.

You can't compile python, but what you can do is create a 
library-wrapping around it using elmer which will make it C-callable.

http://elmer.sourceforge.net/

diez




More information about the Python-list mailing list