[Pythonmac-SIG] numpy in python 2.4 vs 2.5
William Kyngesburye
woklist at kyngchaos.com
Sat Feb 10 04:56:49 CET 2007
I'm trying to build a python extension that uses numpy. When I build
with python 2.4.[whatever the last one was] and the current numpy
1.0.1 package, it succeeds with no problem.
When I try python 2.5 and the matching numpy 1.0.1:
building '_gdal' extension
creating build/temp.macosx-10.3-fat-2.5
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -
fno-common -dynamic -DNDEBUG -g -O3 -I../../port -I../../gcore -
I../../alg -I../../ogr -I../../macosx/GDAL/gdal -I/Library/Frameworks/
Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/
include -I/Library/Frameworks/Python.framework/Versions/2.5/include/
python2.5 -c gdal_wrap.cpp -o build/temp.macosx-10.3-fat-2.5/gdal_wrap.o
gdal_wrap.cpp: In function 'int SWIG_Python_ConvertFunctionPtr
(PyObject*, void**, swig_type_info*)':
gdal_wrap.cpp:2051: error: invalid conversion from 'const char*' to
'char*'gdal_wrap.cpp: In function 'int SWIG_Python_ConvertFunctionPtr
(PyObject*, void**, swig_type_info*)':
gdal_wrap.cpp:2051: error: invalid conversion from 'const char*' to
'char*'
any ideas?
(and how do I get rid of the -g debug flag? I may have asked once
upon a time and I'm probably stuck with it.)
-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/
"We are at war with them. Neither in hatred nor revenge and with no
particular pleasure I shall kill every ___ I can until the war is
over. That is my duty."
"Don't you even hate 'em?"
"What good would it do if I did? If all the many millions of people
of the allied nations devoted an entire year exclusively to hating
the ____ it wouldn't kill one ___ nor shorten the war one day."
<Ha, ha> "And it might give 'em all stomach ulcers."
- Tarzan, on war
More information about the Pythonmac-SIG
mailing list