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

John Myers atomicdog.jwm at gmail.com
Sun Mar 13 22:30:01 PDT 2011


Hi,

I was wondering if libcxx works on Linux machines. From reading the archives
it seems like some people have got it to work. It seems to compile fine for
me but I get this error: *Could not resolve external global address:
std::__1::cout*
Am I doing something wrong or should libcxx not work on linux yet?


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 2>&1 | c++filt
LLVM ERROR: Could not resolve external global address: std::__1::cout
john at ubuntu:~/src$ cat world.cc
#include <iostream>

using namespace std;

int main() {

  cout << "hello world!\n";

  return 0;
}


Thanks,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110313/8c60462e/attachment.html>


More information about the cfe-dev mailing list