[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] gcc 3.4.5 / Python issue ?

From: Massimiliano Maini
Subject: [Bug-gnubg] gcc 3.4.5 / Python issue ?
Date: Mon, 31 Mar 2008 11:49:12 +0200

Hi all,

I installed the latest (stable) mingw gcc (3.4.5) and I can't compile dbprovider.c

Compiling dbprovider.c
In file included from C:/Python25/include/Python.h:57,
                 from dbprovider.c:28:
C:/Python25/include/pyport.h:73: error: syntax error before "Py_uintptr_t"
C:/Python25/include/pyport.h:73: warning: type defaults to `int' in declaration of `Py_uintptr_t'
C:/Python25/include/pyport.h:73: warning: data definition has no type or storage class

Relevant code in pyport.h:

typedef uintptr_t        Py_uintptr_t;
typedef intptr_t        Py_intptr_t;

And in pyconfig.h:

#if (__GNUC__ <= 3) && (__GNUC_MINOR__ <= 2)
    /* Define integer types capable of
     * holding object pointers for GCC [MinGW] 3.2
     * Which we know for sure does not have these.
    typedef int intptr_t;
    typedef unsigned uintptr_t;
#elif (__GNUC__ >= 3) && (__GNUC_MINOR__ > 2)
     * You must define them if your MinGW does not
     * have them. 3.4.1RC and above have them. And it is
     * a strong possibility that MinGW 3.3.Y has them too.
     * So, tell the compiler we have them:
    #define HAVE_UINTPTR_T 1
    #define HAVE_INTPTR_T 1
#endif /* MinGW/GNUC version checks */

Issue is that uintptr_t is not defined anywhere ...

Any idea ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]