Boost logo

Boost Users :

Subject: Re: [Boost-users] [Python] Undefined symbol in extension library with python 3
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-06-16 21:17:07


At Wed, 27 Apr 2011 23:41:53 -0400,
Vivek wrote:
>
> I compiled and installed boost 1.46.1 from source recently using:
>
> $ ./bootstrap.sh --with-python-version=3.1
> $ sudo ./bjam -j4 install
>
> I then created the following trivial python extension:
>
> #include <boost/python.hpp>
>
> struct mystruct {
> int i;
> };
>
> BOOST_PYTHON_MODULE(test) {
> using namespace boost::python;
> class_<mystruct>("Mystruct")
> .def_readwrite("i", &mystruct::i)
> ;
> }
>
> and compiled and ran it, but got an undefined symbol error:

Vivek,

If this is still an issue for you, I'd appreciate it if you could file
a bug in the Boost Trac at https://svn.boost.org/trac/boost

Thanks,

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net