Embedding Python in C-code??

Jeff jam at quark.emich.edu
Tue Jan 25 08:16:07 EST 2000


On Tue, Jan 25, 2000 at 02:05:57PM +0100, Thomas Weholt wrote:
> Hi,
> 
> Just wondered, and it`s probably stupid, if it`s possible to use python
> code/objects/modules from a C++/C-program. I mean, Glade and alot of
> other GUI-builders are aimed at C/C++ development. If we could somehow
> use Python as foundation and just access that from a gui built using
> C/C++ it would be cool.
> 
> Thomas

you can embed the python interpreter in C/C++ programs.. take a look at the
'extending and embedding' manual for tips:

http://www.python.org/doc/current/ext/ext.html

-- 
|| visit gfd <http://quark.emich.edu/>
|| psa member -- <http://www.python.org/psa/> 
|| New Image Systems & Services, Inc. <http://www.newimage.com/>




More information about the Python-list mailing list