473,396 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

pymen.h

I have installed Python-2.3.3 in the SUSE Linux 9.1 system and am
trying to rebuild an application rpm that was implemented in Python, I
got the following error when compiling the application extension
module,

/usr/Python-2.3.3/Include/pymem.h: In function '__declspec'
/usr/Python-2.3.3/Include/pymem.h:51: error: parse error before
'__declspec'
/usr/Python-2.3.3/Include/pymem.h:50: error: declaration for parameter
'PyMem_Malloc' but no such parameter

:

line 50 and 51 of pymem.h are the following,

PyAPI_FUNC(void*) PyMem_Malloc(size_t)
PYAPI_FUNC(void*) PyMem_Realloc(void *, size_t);

I thought '__declspec' was used to specify the Windows DLLs, but I am
running in the linux environment, do I need to run something else to
setup the correct environment first?

Thanks.

Jul 18 '05 #1
0 865

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.