28 Mar
2015
28 Mar
'15
8:08 a.m.
On 3/27/2015 6:39 AM, John Maddock wrote:
No.
Do you mean <linkflags>-std=c++11 ? Or something else to tell it what library to use ?
Steven is correct - you need to pass -std=c++11 (or whatever) to the linker as well as the compiler.
Thanks, I discovered that was the situation.
Note that this is much improved in Git develop where the sun toolset now has inbuilt features for the various std lib's see https://github.com/boostorg/build/commit/259f7f7a96eed7ffb9f8a10f555b7aaa6f7.... Unfortunately for C++ 11 mode you still need to add an explicit -std=c++11 via cxxflags :(
Are the inbuilt features in sun.jam for the various std lib's meant to be used by the end-user in any way ?