[C++-sig] gcc flag -fvisibility=hidden not working with boost::python
Niall Douglas
s_sourceforge at nedprod.com
Wed Mar 25 23:17:44 CET 2009
On 23 Mar 2009 at 11:42, Renato Araujo wrote:
> For more details about the problem, I found the correct header witch
> give me this problem, and isolate that with this:
>
> #include <boost/python/detail/prefix.hpp>
> # include <boost/type_traits/is_polymorphic.hpp>
> # include <boost/mpl/bool.hpp>
>
> #pragma GCC visibility push(default)
> #include <boost/python/detail/wrapper_base.hpp>
> #pragma GCC visibility pop
>
> #include <boost/python.hpp>
This is a fix which "just happens to work" but it won't do so
reliably. I would strongly recommend finding exactly which part of
either Boost or your code is missing its proper visibility
declarations and fix it.
I'll be running a test build of TnFOX this summer (hopefully as part
of GSoC), so if Boost.Python has introduced a regression I'll find it
and fix it then.
Cheers,
Niall
More information about the Cplusplus-sig
mailing list