python lib name

Satish Balay balay at fastmail.fm
Sat Sep 11 00:28:13 UTC 2004



On Fri, 10 Sep 2004, Preston wrote:

> El Viernes, 10 de Septiembre de 2004 05:13 PM, Satish Balay escribió:
> > On Fri, 10 Sep 2004, Preston wrote:
> > > El Viernes, 10 de Septiembre de 2004 04:02 PM, Satish Balay escribió:
> > > > On Fri, 10 Sep 2004, Preston wrote:
> > > > > Im trying to compile an app that uses python libs, but I cant find
> > > > > the correct library name to link it. Can somebody tell me what is the
> > > > > name of python shared libs in FC2?
> > > >
> > > > try 'slocate libpython'
> > >
> > > Not that name, I mean the name used to link in gcc (like -lSDL, -lpython)
> >
> > What do you mean?
> >
> > On FC1 I have:
> > [asterix]: slocate libpython
> > /usr/lib/python2.2/config/libpython2.2.a
> > /usr/lib/ooo-1.1/program/libpython.so
> > /usr/lib/ooo-1.1/program/libpython.so.2
> > /usr/lib/ooo-1.1/program/libpython.so.2.2.2
> >
> > So, you could use either:
> > /usr/lib/python2.2/config/libpython2.2.a
> > or
> > -L/usr/lib/python2.2/config -lpython2.2
> >
> > If your really needs the shared library variant - you could try the
> > following and see if it works:
> >
> > -L/usr/lib/ooo-1.1/program -lpython

> What I need is to link libs to use code generated by SWIG, statically or 
> dinamically.

Then you should ask this in SWIG mailing list (or something like that) what
the requiremet is.

Satish


More information about the users mailing list