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

John Myers atomicdog.jwm at gmail.com
Mon Mar 14 09:15:39 PDT 2011


On Mon, Mar 14, 2011 at 7:38 AM, Marc Glisse <marc.glisse at inria.fr> wrote:

> 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?
>
>
> Yeah, somewhere on llvm.org there was instructions on setting up Linux to
run bitcode directly.

 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
>

Thanks for the info and clarification.

--John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110314/92dfe241/attachment.html>


More information about the cfe-dev mailing list