[Pyrex] Newbie compiler problem
me2lon at freenet.de
me2lon at freenet.de
Tue Aug 30 13:04:17 CEST 2005
Hi,
I'm new to pyrex and have now tried to get it work properly for some hours.
I read through several tutorials als also through this mailing list. All
went well excet for the
last step: compiling.
I'm using Python 2.4.1 / Pyrex 0.9.3 / mingW32 3.2.3
I've now tried several other versions of mingW compilers but I keep
getting
this error ( I know that these warnings aren't critical ):
C:\Downloads\Pyrex-0.9.3\Pyrex-0.9.3\Demos>c:\python24\python setup.py
build_ext
--compiler=mingw32
running build_ext
building 'primes' extension
creating build
creating build\temp.win32-2.4
creating build\temp.win32-2.4\Release
c:\dev-cpp\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\python24\include
-Ic:\pyt
hon24\PC -c primes.c -o build\temp.win32-2.4\Release\primes.o
primes.c: In function `__pyx_f_6primes_primes':
primes.c:89: warning: label `__pyx_L3' defined but not used
primes.c:98: warning: label `__pyx_L5' defined but not used
primes.c:108: warning: label `__pyx_L6' defined but not used
primes.c:137: warning: label `__pyx_L4' defined but not used
primes.c: At top level:
[snip]
pile of warnings
writing build\temp.win32-2.4\Release\primes.def
creating build\lib.win32-2.4
c:\dev-cpp\bin\gcc.exe -mno-cygwin -shared -s
build\temp.win32-2.4\Release\prime
s.o build\temp.win32-2.4\Release\primes.def -Lc:\python24\libs
-Lc:\python24\PCB
uild -lpython24 -lmsvcr71 -o build\lib.win32-2.4\primes.pyd
building 'spam' extension
c:\dev-cpp\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\python24\include
-Ic:\pyt
hon24\PC -c spam.c -o build\temp.win32-2.4\Release\spam.o
spam.c: In function `__pyx_f_4spam_4Spam___new__':
spam.c:64: warning: label `__pyx_L1' defined but not used
spam.c: In function `__pyx_tp_new_4spam_Spam':
spam.c:184: warning: unused variable `p'
spam.c: In function `__pyx_tp_dealloc_4spam_Spam':
spam.c:192: warning: unused variable `p'
spam.c: In function `__pyx_tp_traverse_4spam_Spam':
spam.c:206: warning: unused variable `e'
spam.c:207: warning: unused variable `p'
spam.c: In function `__pyx_tp_clear_4spam_Spam':
spam.c:212: warning: unused variable `p'
spam.c: At top level:
[snip]
pile of warnings
writing build\temp.win32-2.4\Release\spam.def
c:\dev-cpp\bin\gcc.exe -mno-cygwin -shared -s
build\temp.win32-2.4\Release\spam.
o build\temp.win32-2.4\Release\spam.def -Lc:\python24\libs
-Lc:\python24\PCBuild
-lpython24 -lmsvcr71 -o build\lib.win32-2.4\spam.pyd
building 'numeric_demo' extension
c:\dev-cpp\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\python24\include
-Ic:\pyt
hon24\PC -c numeric_demo.c -o build\temp.win32-2.4\Release\numeric_demo.o
numeric_demo.c:8:33: Numeric/arrayobject.h: No such file or directory
numeric_demo.c: In function `__pyx_f_12numeric_demo_print_2d_array':
numeric_demo.c:74: error: `PyArrayObject' undeclared (first use in this
function)
numeric_demo.c:74: error: (Each undeclared identifier is reported only once
numeric_demo.c:74: error: for each function it appears in.)
numeric_demo.c:74: error: `__pyx_v_a' undeclared (first use in this
function)
numeric_demo.c:206: warning: label `__pyx_L4' defined but not used
numeric_demo.c:228: warning: label `__pyx_L6' defined but not used
numeric_demo.c:255: warning: label `__pyx_L7' defined but not used
numeric_demo.c:266: warning: label `__pyx_L5' defined but not used
numeric_demo.c: In function `initnumeric_demo':
numeric_demo.c:323: error: `PyArrayObject' undeclared (first use in this
function)
numeric_demo.c: At top level:
[snip]
another pile of warnings
error: command 'gcc' failed with exit status 1
It just seems the compiler doesn't import the header files but i don't
know why.
I'd be pleased if you could hel me.
More information about the Pyrex
mailing list