[cfe-dev] Using C++11 in clang-tools-extra Round 2
Vane, Edwin
edwin.vane at intel.com
Mon Jan 7 17:08:38 PST 2013
Nico wrote:
Sure, you can build clang itself, but building programs that use c++11 don't Just Work as far as I can tell:
thakis at yearofthelinuxdesktop:/usr/local/google/chrome/src$ cat test.cc #include <iostream>
int main() {}
thakis at yearofthelinuxdesktop:/usr/local/google/chrome/src$
third_party/llvm-build/Release+Asserts/bin/clang++ test.cc thakis at yearofthelinuxdesktop:/usr/local/google/chrome/src$
third_party/llvm-build/Release+Asserts/bin/clang++ test.cc -std=c++11 In file included from test.cc:1:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/iostream:39:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/ostream:39:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/ios:39:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/exception:148:
/usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/exception_ptr.h:143:13:
error: unknown type name
'type_info'
const type_info*
^
1 error generated.
[Edwin] I tried this test exactly and it worked just fine for me. I'm using clang++ 3.2. I'm on Ubuntu 12.04 with gcc 4.6.3 installed.
--
Edwin Vane
Software Developer
Intel of Canada, Inc.
More information about the cfe-dev
mailing list