Yes, if you want C++11 on Snow Leopard, you need to install the libcxx port and 
use clang-3.3 or later.

Also, I believe you may need to add -stdlib=libc++ in addition to -std=c++11.  
I think it should be implied, but I forget if it is.

--Jeremy

> On Sep 5, 2014, at 08:23, Lawrence Velázquez <[email protected]> wrote:
> 
> On Sep 5, 2014, at 8:23 AM, René J.V. Bertin <[email protected]> wrote:
> 
>> It's all in the title; MacPorts' clang-3.4 doesn't seem to find the 
>> initializer_list header on 10.6, whether I specify -std=c++11 or not. It's 
>> as if it doesn't search in ${prefix}/libexec/llvm-3.4/include/c++/v1 because 
>> if I add that path via -I the compilation succeeds.
>> 
>> Of course I then get missing symbols while linking, so maybe it's simply 
>> impossible to build what I'm trying to build (kdevelop git/kde4-legacy) on 
>> 10.6?
> 
> From what I recall, Snow Leopard doesn't have a C++11 runtime. You may have 
> to install the libcxx port manually; clang-3.4 and earlier don't pull it in 
> automatically.
> 
> https://trac.macports.org/ticket/34288
> 
> Double-check with Jeremy, though.
> 
> vq

_______________________________________________
macports-users mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to