Robert
As you are on Linux 12.04 as I am your default compiler seems to be gcc 4.6.3.
Try adding this into the compile line when you building your binary file:
-DBOOST_NO_CXX11_ALLOCATOR
That worked for me on a simple example. It is buried now down in the thread.
Boost is getting the library version wrong and making some wrong choices. This fix should get you running.
Best wishes
John Fletcher (because there is more than one John in the thread)
________________________________________
From: Boost [boost-bounces@lists.boost.org] on behalf of Robert Dailey [rcdailey.lists@gmail.com]
Sent: 18 January 2015 18:30
To: Boost Developers
Subject: Re: [boost] Clang 3.4 failing to compile boost 1.57 headers
On Sun, Jan 18, 2015 at 6:01 AM, John Maddock
I have done some quick tests on this with various versions of Clang on Ubunbtu 12.04
Clang 3,4, 3,5 3,6 (not yet released).
All work with C++03 , All fail with C++11 and the default libraries from gcc (4.6 on my system)
This sounds like it may be a config issue then - BOOST_NO_CXX11_ALLOCATOR should be set for GCC-4.6.x and earlier. However it's next to impossible to correctly identify the libstdc++ version when using clang (there's a long discussion about this here https://svn.boost.org/trac/boost/ticket/7473).
So:
1) Is Boost.Config setting BOOST_NO_CXX11_ALLOCATOR for clang on top of gcc-4.6.x std lib? 2) If not, what value is BOOST_LIBSTDCXX_VERSION set to?
Thanks, John.
Are you asking me? If so, how do I check #1 and #2? _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost