embed python

Marc Schellens m_schellens at hotmail.com
Sun Mar 14 02:29:21 EST 2004


Thanks Peter,

> In article <c2pi2o$17dm$2 at news.riken.go.jp>, Marc Schellens wrote:
> 
>>Can somebody tell me how to handle
>>this #include issue when embedding python?
> 
> 
> Usually "#include "Python.h" is the right way. Then tell your compiler
> to add "python2.3" to the include list. On gcc pass "-I/usr/include/python2.3"
> or similar to the compilation step.
>>Why NOT (according to  the python doc) ude
>>#include <python2.3/Python.h>
>>?
> 
> 
> Well, you actually can do that, it will work just as above way. But when
> you upgrade your Python to 2.4, you need to change your sourcecode. Otherwise
> you only need to change your Makefile.

ok, but why everybody writes #include "Python.h" instead of
#include <Python.h> ? The latter form is the corrcet one for
header files wich are not part of the actual project.

marc




More information about the Python-list mailing list