Re: Trouble including Python.h

2006-06-23 Thread Tim Roberts
"Marcelo Gosling" <[EMAIL PROTECTED]> wrote: > >Hi, everyone. > >This is on WinXP SP2, with Python 2.4.3 and DJGPP gcc 4.1.0. > >I'm having trouble including Python.h in a C file. The following C >code: > >#include "Python.h" > >int main() >{ >return 0; >} > >when compiled with "gcc -I..\Python

Re: Trouble including Python.h

2006-06-23 Thread John Machin
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

Re: Trouble including Python.h

2006-06-23 Thread John Machin
On 24/06/2006 7:51 AM, Marcelo Gosling wrote: > Hi, everyone. > > This is on WinXP SP2, with Python 2.4.3 and DJGPP gcc 4.1.0. > > I'm having trouble including Python.h in a C file. The following C > code: > > #include "Python.h" > > int main() > { > return 0; > } > > when compiled with "g

Re: Trouble including Python.h

2006-06-23 Thread Marcelo Gosling
No, that didn't do the trick. The main reason I'm posting this here is that I get all tese error messages just from including Python.h, the code itself does absolutely nothing. Cheers vduber6er wrote: > Try > > #undef _DEBUG > #include "C:\Python24\include\python.h" > > or which ever path your py

Re: Trouble including Python.h

2006-06-23 Thread vduber6er
Try #undef _DEBUG #include "C:\Python24\include\python.h" or which ever path your python.h is located at works for me Marcelo Gosling wrote: > Hi, everyone. > > This is on WinXP SP2, with Python 2.4.3 and DJGPP gcc 4.1.0. > > I'm having trouble including Python.h in a C file. The following C >