problem when building python bindings - OS X

Brian Gyss brian.gyss at gmail.com
Fri Mar 6 17:29:20 UTC 2009


All:

I'm having a problem whenever I try to build the Python bindings for  
libkdtree++ on my OS X box - here's an example of what it's printing  
out:

$ make
g++ -I.. -pedantic -Wno-long-long -Wall -ansi -pedantic - 
DHAVE_CONFIG_H -O3 -c py-kdtree_wrap.cxx -I/usr/include/python2.5 -I..
g++ -I.. -pedantic -Wno-long-long -Wall -ansi -pedantic - 
DHAVE_CONFIG_H -O3 -shared  py-kdtree_wrap.o  -o _kdtree.so
Undefined symbols:
   "_PyString_FromFormat", referenced from:
       _PySwigPacked_str in py-kdtree_wrap.o
       _PySwigObject_repr in py-kdtree_wrap.o
       _PySwigPacked_repr in py-kdtree_wrap.o
       _PySwigPacked_repr in py-kdtree_wrap.o
...
   "_PyCObject_FromVoidPtr", referenced from:
       _SWIG_Python_SetModule in py-kdtree_wrap.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [_kdtree.so] Error 1

The c++ examples seem to work fine, so I was wondering if anyone had  
any idea how I could fix this problem?

Thanks!

-b

--
Brian Gyss
brian.gyss at gmail.com
http://www.briangyss.com









More information about the libkdtree-devel mailing list