compiling python and calling it from C/C++

Russ uymqlp502 at sneakemail.com
Fri Jun 8 15:30:01 EDT 2007


Diez B. Roggisch wrote:
> 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/

This looks promising. Thanks.




More information about the Python-list mailing list