Python in C++

Jörg Preiß J.Preiss at gastrofix.com
Tue May 15 13:59:22 BST 2001


Well, I have to agree that the doc is not enough to extend C++-Apps. I
have the same problem, I want to get access to my own classes from
python. 
Until now, I did not have the time to have a look at swig, but I think
that's the best way to do it.


Bernd Gehrmann wrote:
> 
> On Tue, 15 May 2001, gleki wrote:
> > I wonder if any experienced programmer could give me some hint on where
> > can I
> > get a manual or whatsoever on embedding Python code in C++ apps. The one
> > on
> > python.org/doc is not very much complete...
> 
> Hmm, it was enough for me to use it :-) What do you think is
> missing?
> 
> > How can  be this done in KDevelop? Can it handle also the makefiles in
> > the
> > corresponding manner?
> 
> When you are writing a KDE program with the according admin directory,
> you have to add a check
> 
>   KDE_CHECK_PYTHON
> 
> to your configure.in.in and rerun autoconf. After that, the configure
> script will find the include paths and link command for your installed
> python version. In the Makefile.am, you have to add
> 
>   $(PYTHONINC)
> 
> to the INCLUDES variable and
> 
>   $(PYTHONLIB) $(LIBPYTHON)
> 
> to the foo_LDADD line. In the KDevelop HEAD branch, the python
> part is an example how to do it.
> 
> Bernd.
> 
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list