Python in C++
Bernd Gehrmann
bernd at physik.hu-berlin.de
Tue May 15 13:47:33 BST 2001
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«
More information about the KDevelop
mailing list