Message61235
Logged In: YES
user_id=11850
Oops, I forgot the -I option, but that doesn't really make a difference.
For Python 2.5:
gcc -I /usr/local/include/python2.5 foobar.c
--> no error message
For Python 2.4:
gcc -I /Library/Frameworks/Python.framework/Versions/2.4/include/
python2.4 foobar.c
In file included from /Library/Frameworks/Python.framework/Versions/2.4/
include/python2.4/Python.h:55,
from foo.h:1,
from foobar.c:1:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/
pyport.h:396: warning: 'struct winsize' declared inside parameter list
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/
pyport.h:397: warning: 'struct winsize' declared inside parameter list
In file included from foobar.c:2:
bar.h:4: error: redefinition of typedef 'Py_ssize_t'
foo.h:4: error: previous declaration of 'Py_ssize_t' was here
|
|
Date |
User |
Action |
Args |
2008-01-20 09:59:46 | admin | link | issue1485576 messages |
2008-01-20 09:59:46 | admin | create | |
|