How to compile C++11 with clang 3.2 on OSX lion?

前端 未结 1 863
走了就别回头了
走了就别回头了 2020-12-29 05:12

I am trying to compile the following C++ program which relies on the C++11 header. I am trying to do this on OSX Lion.

#include &         


        
相关标签:
1条回答
  • 2020-12-29 05:45

    You need to use libc++ instead of libstdc++.

    clang++ -std=c++11 -stdlib=libc++ foo.cc
    
    0 讨论(0)
提交回复
热议问题