Hi everyone.

I am on a Powerbook running 10.5.3 and trying to go through the example on
http://www.perrygeo.net/wordpress/?p=116 , which fails. Can anyone
tell me what I am doing wrong?

I create the c1.pxd
and run

cython c1.pyx
gcc -c -fPIC -I/usr/include/python2.5 cl.c
gcc -dynamiclib -o c1.dylib -dylib c1.o
Undefined symbols:
  "_PyDict_New", referenced from:
      ___Pyx_Import in c1.o
  "_PyNumber_Multiply", referenced from:
      ___pyx_pf_2c1_great_circle in c1.o
      ___pyx_pf_2c1_great_circle in c1.o
      ___pyx_pf_2c1_great_circle in c1.o
  "_PyObject_SetAttrString", referenced from:
      _initc1 in c1.o
  "_PyObject_SetAttr", referenced from:
      _initc1 in c1.o
  "_PyFloat_AsDouble", referenced from:
      ___pyx_pf_2c1_great_circle in c1.o
      ___pyx_pf_2c1_great_circle in c1.o
      ___pyx_pf_2c1_great_circle in c1.o
      ___pyx_pf_2c1_great_circle in c1.o
      ___pyx_pf_2c1_great_circle in c1.o
.
.
.
  "_PyTuple_New", referenced from:
      ___pyx_pf_2c1_great_circle in c1.o
      ___pyx_pf_2c1_great_circle in c1.o
      ___pyx_pf_2c1_great_circle in c1.o
      ___pyx_pf_2c1_great_circle in c1.o
      ___pyx_pf_2c1_great_circle in c1.o
      ___pyx_pf_2c1_great_circle in c1.o
      _initc1 in c1.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to