[cfe-dev] [libcxx] Linux support status?

Marc Glisse marc.glisse at inria.fr
Mon Mar 14 07:38:29 PDT 2011


Hello,

On Sun, 13 Mar 2011, John Myers wrote:

> I was wondering if libcxx works on Linux machines. From reading the archives
> it seems like some people have got it to work.

no, it doesn't. At least, anything related to streams or wchar_t will 
break. Other parts that don't involve as much platform specific code 
work much better.

> john at ubuntu:~/src$ clang++ --version
> clang version 3.0 (trunk 127576)
> Target: x86_64-unknown-linux-gnu
> Thread model: posix
> john at ubuntu:~/src$ clang++ -std=c++0x -stdlib=libc++ -emit-llvm -c -o
> world.bc world.cc
> john at ubuntu:~/src$ chmod +x world.bc
> john at ubuntu:~/src$ ./world.bc

Is that really supposed to work?

> john at ubuntu:~/src$ cat world.cc
> #include <iostream>
> 
> using namespace std;
> 
> int main() {
> 
>   cout << "hello world!\n";
> 
>   return 0;
> }

Sorry, hello world is broken and will output some garbage after the normal 
text.

-- 
Marc Glisse




More information about the cfe-dev mailing list