[C++-sig] importing c++ shared dynamic libraries (.so)

Roman Yakovenko roman.yakovenko at gmail.com
Sat Jul 14 10:33:24 CEST 2007


On 7/13/07, Tim Spens <t_spens at yahoo.com> wrote:
> I'm trying to import multiple c++ shared dynamic
> libraries (.so) with inter-dependencies into python.
> Then use one of the .so libraries which I've added
> boost.python wrappers to.  Here's the out put from
> python...
>
> using boost 1.33
>
> Python 2.5.1 (r251:54863, May  2 2007, 16:56:35)
> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
> Type "help", "copyright", "credits" or "license" for
> more information.
> >>>
> >>> import libxml2
> >>> #libxml2.so imported just fine
> >>>
> >>> import libboost_thread
> Any help will be greatly appreciated.

You cannot import raw so's to Python as is. I guess you don't
understand something very fundamental about Boost.Python or Python.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list