[C++-sig] Re: boost.Python/Jam with shared libraries
abentley at panoramicfeedback.com
Wed Nov 10 16:37:02 CET 2004
Rene Rivera <grafik.list <at> redshift-software.com> writes:
> John Meinel wrote:
> > I thought that worked for both dynamic and static libraries. The
> > alternative in my mind would be
> > <library-file>$(LIBPDF_PATH)/libpdf.a
> > You can either hard code $(LIBPDF_PATH), or what I prefer is to add the
> > line:
> You can also use a relative path to it:
With <library-file> or with <find-library>, I get the same results. Jam appears
abentley at troll:~/programming/python$ ./go.sh
...found 1290 targets...
...updating 4 targets...
...updated 4 targets...
But I can't import it:
>>> import pfengine
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: /home/abentley/programming/.libs/libchart.so.0: undefined symbol:
I suppose it's possible that the problem is caused by trying to link a static
library into a shared library, but you'd think that would be possible. I guess
I could try to convert libpdf.a into a shared library. Who'd have thought I'd
have more trouble linking to C than to C++?
More information about the Cplusplus-sig