[cfe-dev] New C++0x feature support in Clang
Larry Evans
cppljevans at suddenlink.net
Sat Jan 29 11:19:46 PST 2011
On 01/29/11 13:13, Larry Evans wrote:
[snip]
> Just #including iostream causes problems, as shown by
> compile of the following test.cpp:
>
> #include <iostream>
> int main(void)
> {
> std::cout<<"Hello World!\n";
> return 0;
> }
>
>
> which produces errors:
>
> make -f clang.mk
> uname -a
> Linux evansl-desktop 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19
> 01:38:40 UTC 2010 x86_64 GNU/Linux
> /home/evansl/download/llvm/svn/build/Debug+Asserts/bin/clang -c
> -std=c++0x -v -c test.cpp
> clang version 2.9 (trunk 124525)
> Target: x86_64-unknown-linux-gnu
[snip]
Without the -std=c++0x, it compiles fine:
make -f clang.mk
/home/evansl/download/llvm/svn/build/Debug+Asserts/bin/clang -c test.cpp
Compilation finished at Sat Jan 29 13:17:42
More information about the cfe-dev
mailing list