469,336 Members | 5,592 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

PY_LONG_LONG problem

I've compiling boodler (http://www.eblong.com/zarf/boodler/), which is written
(mostly) in python, for windows, using Python 2.3.

When at the stage of compiling some C code, I'm running into problems:

$ make
make[1]: Entering directory `/cygdrive/c/tools/boodler/cboodle'
gcc -O2 -I/usr/include/python2.3 -Wall -Wmissing-prototypes -Wstrict-prototype
s -Wno-unused -c -o cboodle.o cboodle.c
In file included from C:/Python23/include/Python.h:75,
from cboodle.c:15:
C:/Python23/include/intobject.h:41: error: syntax error before "PyInt_AsUnsigned
LongLongMask"
[snip a few more errors]

The problem is that the compiler is falling over whenever PY_LONG_LONG is
mentioned. The first example, from intobject.h as reported above, is this:

#ifdef HAVE_LONG_LONG
PyAPI_FUNC(unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *);
^^^^^^^^^^^^

then, following things along, I see that in pyport.h we have:

#ifndef PY_LONG_LONG
#define PY_LONG_LONG long long

so, is it "long long" that is actually causing the problems here?

I've never compiled C that uses python includes before, so I'm a bit stumped.

thanks
alex

Jul 18 '05 #1
1 2800
Alex Hunsley wrote:
I've compiling boodler (http://www.eblong.com/zarf/boodler/), which is
written (mostly) in python, for windows, using Python 2.3.

When at the stage of compiling some C code, I'm running into problems:
[snip]
so, is it "long long" that is actually causing the problems here?

I've never compiled C that uses python includes before, so I'm a bit
stumped.


Btw, this is being done under cygwin...
alex

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Bruce Davis | last post: by
11 posts views Thread by Kostatus | last post: by
9 posts views Thread by Sudesh Sawant | last post: by
117 posts views Thread by Peter Olcott | last post: by
28 posts views Thread by Jon Davis | last post: by
6 posts views Thread by Ammar | last post: by
2 posts views Thread by Mike Collins | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.