[NCLUG] Need help compiling a Judy module for Python
Marcio Luis Teixeira
marciot at holly.colostate.edu
Fri Jul 26 18:07:38 MDT 2002
Nevermind. I managed to get something that works. To wit, I am using "g++"
rather than "ld" to make the shared library. I guess "g++" knows how to do
the right thing, but "ld" does not. Anyhow, this is what I ended up doing:
swig -python -shadow -c++ Judy.i
g++ -c -shared Judy1.cc -I/usr/include/python1.5
-I/usr/lib/python1.5/config
g++ -shared Judy1.o -lJudy Judy_wrap.c -I/usr/include/python1.5
-I/usr/lib/python1.5/config -o Judycmodule.so
Everything seems to work now.
Marcio Luis Teixeira
More information about the NCLUG
mailing list