Compile Error: error: expected `)' before 'PRIdPTR'
Hi, I am still trying to install SciPy 0.7.0 on AIX 5.3. I have managed to install NumPy 1.3.0. When I try to install SciPym I get scipy/sparse/sparsetools/csr_wrap.cxx: In function 'int require_size(PyArrayObject*, npy_intp*, int)': scipy/sparse/sparsetools/csr_wrap.cxx:2910: error: expected `)' before 'PRIdPTR'
From the reading the list I see that this problem has occurred before and has apparently been fixed.
Any ideas why this is still happening? Cheers Loris
Hi, Anyone had any thoughts on this? Loris -- Dr. Loris Bennett Computer Centre Freie Universität Berlin Berlin, Germany
On Wed, Jun 10, 2009 at 10:18 PM, Dr. Loris Bennett<loris.bennett@fu-berlin.de> wrote:
Hi,
Anyone had any thoughts on this?
I guess that inttypes.h (where PRIdPTR is defined in C99) is not correct for C++ on AIX. A hack to fix this for you would be to replace PRIdPTR by 'ld' in the *numpy* ndarrayobject.h header. cheers, David
David Cournapeau wrote:
On Wed, Jun 10, 2009 at 10:18 PM, Dr. Loris Bennett<loris.bennett@fu-berlin.de> wrote:
Hi,
Anyone had any thoughts on this?
I guess that inttypes.h (where PRIdPTR is defined in C99) is not correct for C++ on AIX. A hack to fix this for you would be to replace PRIdPTR by 'ld' in the *numpy* ndarrayobject.h header.
Sorry, should be "ld", not 'ld' David
David Cournapeau <david@ar.media.kyoto-u.ac.jp> writes:
David Cournapeau wrote:
On Wed, Jun 10, 2009 at 10:18 PM, Dr. Loris Bennett<loris.bennett@fu-berlin.de> wrote:
Hi,
Anyone had any thoughts on this?
I guess that inttypes.h (where PRIdPTR is defined in C99) is not correct for C++ on AIX. A hack to fix this for you would be to replace PRIdPTR by 'ld' in the *numpy* ndarrayobject.h header.
Sorry, should be "ld", not 'ld'
David
OK, thanks for the help. That did the trick. -- Dr. Loris Bennett Computer Centre Freie Universität Berlin Berlin, Germany
participants (3)
-
David Cournapeau
-
David Cournapeau
-
loris.bennett@fu-berlin.de