Boost logo

Boost Users :

Subject: Re: [Boost-users] linker error
From: Philipp Kraus (philipp.kraus_at_[hidden])
Date: 2012-08-03 07:11:21


Hi James,

this tip was correct, I must add the boost_system library and the
stdc++ lib, after that the linker creates no errors.

Phil

On 2012-07-24 00:48:08 +0200, James Sutherland said:

> Not sure if this will solve it or not, but try adding the systems library in.
>
> I found on a few of my applications that boost 1.50 required this
> library where previous versions did not - I don't know where the
> dependency was introduced...
>
> James
>
>
> On Thu, Jul 19, 2012 at 4:56 AM, Kraus Philipp
> <philipp.kraus_at_[hidden]> wrote:
> Hello,
>
> I have got some problems with linking some Boost libraries (1.50) on OSX
> The linker shows:
>      
> boost::detail::sp_counted_impl_p<boost::exception_detail::clone_impl<boost::exception_detail::bad_alloc_>
> >::~sp_counted_impl_p()in test.o
>      
> boost::detail::sp_counted_impl_p<boost::exception_detail::clone_impl<boost::exception_detail::bad_exception_>
> >::~sp_counted_impl_p()in test.o
>       boost::system::error_category::~error_category()in test.o
>       boost::detail::sp_counted_base::~sp_counted_base()in test.o
>       boost::exception_detail::clone_base::~clone_base()in test.o
>      
> boost::exception_detail::clone_impl<boost::exception_detail::bad_exception_>::clone()
> constin test.o
>      
> boost::exception_detail::clone_impl<boost::exception_detail::bad_exception_>::~clone_impl()in
> test.o
>       boost::system::system_error::~system_error()in test.o
>      
> boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::thread_resource_error>
> >::~clone_impl()in test.o
>       boost::thread_exception::~thread_exception()in test.o
>       boost::thread_resource_error::~thread_resource_error()in test.o
>       boost::exception_detail::bad_exception_::~bad_exception_()in test.o
>
>
> and with ASIO
>
>  "std::basic_streambuf<char, std::char_traits<char> >::pbackfail(int)",
> referenced from:
>      vtable for boost::asio::basic_streambuf<std::allocator<char> >in twitter.o
>      vtable for boost::iostreams::detail::linked_streambuf<char,
> std::char_traits<char> >in twitter.o
>      vtable for boost::re_detail::parser_buf<char,
> std::char_traits<char> >in twitter.o
>  "std::basic_ostream<char, std::char_traits<char> >&
> std::__ostream_insert<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*,
> long)", referenced from
>
> I', using boost thread, iostreams, filesystem, exception an aiso. The
> exception library is linked with the static option, other dynamic.
> Which is the correct order to solve the dependency error?
> Can anybody help me to solve this problem?
>
> Thanks
>
> Phil
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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