Yes, the python .so is in my LD path. I can import the module from python without changing any environment variables.
As the compiler flag reveals, I am building a Matlab extension. I need some numpy functionality which I don't want to re-code. Perhaps Matlab uses a different method to dynamically load libraries? On Tue, Jan 13, 2009 at 12:20 AM, Michael Abshoff < [email protected]> wrote: > Igor Sylvester wrote: > > I built it against *Python 2.5.1. > > > > compile:* > > gcc -c > > > -I/usr/lib/python2.5/site-packages/numpy-1.0.4.0002-py2.5-linux-x86_64.egg/numpy/core/include > > -I/usr/bin/python/2.5.1/include/python2.5 -fPIC -fno-omit-frame-pointer > > -pthread -fexceptions -ansi -D_GNU_SOURCE -DMX_COMPAT_32 -g main.c > > > > compile line for the other c-file is identical to main.c's > > > > *link:* > > gcc -g -pthread -shared main.o module.o -L/usr/bin/python/2.5.1/lib > > *-lpython2.5* -ldl -lm -lpthread -lutil -lmx -lmex -lmat -lm -lm -lstdc++ > > > > Ok, so far so good. Is /usr/bin/python/2.5.1/lib in LD_LIBRARY_PATH ? > > Out of curiosity: Are you building something against matlab, i.e. are > you linking against MATLAB's mex? > > Cheers, > > Michael > > <SNIP> > _______________________________________________ > Cython-dev mailing list > [email protected] > http://codespeak.net/mailman/listinfo/cython-dev >
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
