
19 Dec
2012
19 Dec
'12
11:45 a.m.
Peter Dimov wrote:
Not for this, where "this" is a C++11 compiler without a (complete) C++11 library.
I'm sorry for missing this discussion before. If you installed clang 3.1 from MacPorts, which from earlier posts in this thread seems to be the case for Vicente, the solution is to install libc++ from MacPorts and define the following rule in your user-config.jam: using clang : 3.1_11 : clang++-mp-3.1 : <compileflags>-stdlib=libc++ <compileflags>-std=c++11 <linkflags>-stdlib=libc++ ; After that, whenever you want to compile C++11 code with clang just use <toolset>clang-3.1_11 and everything should work as expected. HTH, -Julian