Re: [C++-sig] Re: Embedded Python plus module loading
if my memory serves me right, I had a similar problem once. One has to include Python.h or Boost.python headers before other headers are included. or change the linking order of shared libs. Hope that helps. Joseph H. Yao On Mon, Mar 21, 2005 at 04:27:34AM -0500, David Abrahams wrote:
Daniel Holth <dholth@fastmail.fm> writes:
Okay, I've put a minimal example together.
http://dingoskidneys.com/~dholth/minimal-embedding-failure.zip
It is the embedding example from boost, with an
"import sha" statement
added inside it. sha depends on some dynamically loaded code. When I try to run it, it says:
ImportError: /usr/lib/python2.3/lib-dynload/sha.so: undefined symbol: Py_FindMethod
You should post this question on comp.lang.python; it's really not a Boost-related problem. I'm sure someone there knows how to deal with it.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
_______________________________________________ C++-sig mailing list C++-sig@python.org http://mail.python.org/mailman/listinfo/c++-sig
__________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail
Yao Heling <yaoheling@yahoo.com> writes:
if my memory serves me right, I had a similar problem once. One has to include Python.h or Boost.python headers before other headers are included.
Actually the latter. Although I'm not sure this is related to any linking problems.
or change the linking order of shared libs.
That's quite plausible. -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams -
Yao Heling