Trouble including Python.h

John Machin sjmachin at
Sat Jun 24 04:36:51 CEST 2006

On 24/06/2006 12:14 PM, John Machin wrote:
> On 24/06/2006 7:51 AM, Marcelo Gosling wrote:
>> I'm having trouble including Python.h in a C file. The following C
>> code:

>> In file included from ../../Python2.4/include/Python.h:74,
>>                  from example_wrap.c:112:
> 1. You allegedly have a 6-line test program. What is this example_wrap.c 
> that has 112 lines (or more) in it?

If you're trying to use SWIG (which could quite plausibly have created 
an example_wrap.c from an example.c), wouldn't you be better off with 

I suggest you back away from your 1000-error-message train smash and try 
telling us what you are trying to accomplish and a little bit more of 
the history of how you got on this path.


More information about the Python-list mailing list