Compile Error: error: expected `)' before 'PRIdPTR'

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile Error: error: expected `)' before 'PRIdPTR'

Loris Bennett-2
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

_______________________________________________
SciPy-user mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/scipy-user
Reply | Threaded
Open this post in threaded view
|

Re: Compile Error: error: expected `)' before 'PRIdPTR'

Loris Bennett-2
Hi,

Anyone had any thoughts on this?

Loris
--
Dr. Loris Bennett
Computer Centre
Freie Universit├Ąt Berlin
Berlin, Germany
_______________________________________________
SciPy-user mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/scipy-user
Reply | Threaded
Open this post in threaded view
|

Re: Compile Error: error: expected `)' before 'PRIdPTR'

David Cournapeau
On Wed, Jun 10, 2009 at 10:18 PM, Dr. Loris
Bennett<[hidden email]> 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
_______________________________________________
SciPy-user mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/scipy-user
Reply | Threaded
Open this post in threaded view
|

Re: Compile Error: error: expected `)' before 'PRIdPTR'

cdavid
David Cournapeau wrote:

> On Wed, Jun 10, 2009 at 10:18 PM, Dr. Loris
> Bennett<[hidden email]> 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
_______________________________________________
SciPy-user mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/scipy-user
Reply | Threaded
Open this post in threaded view
|

Re: Compile Error: error: expected `)' before 'PRIdPTR'

Loris Bennett-2
David Cournapeau <[hidden email]> writes:

> David Cournapeau wrote:
>> On Wed, Jun 10, 2009 at 10:18 PM, Dr. Loris
>> Bennett<[hidden email]> 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

_______________________________________________
SciPy-user mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/scipy-user