Rookie problem


this is probably a stupid rookie mistake, but when I compile

// ---------------------------------------

int main()
   std::cerr << "Kaesekuchen";
// ---------------------------------------


clang -std=c++11 -stdlib=libc++ test.cpp -lc++

and run the output, I get

$ ./a.out
KaesekuchenAborted (core dumped)

Here is the scenario:

clang version 3.2 (trunk 155315)
Target: x86_64-unknown-linux-gnu
Thread model: posix

libcxx checked out from the svn today as well.

$ ldd ./a.out => (0x00007ffffe5ff000) => /usr/local/lib/ (0x00007fcb2ff32000) => /lib/x86_64-linux-gnu/
(0x00007fcb2fcfc000) => /lib/x86_64-linux-gnu/ (0x00007fcb2f966000) => /usr/lib/x86_64-linux-gnu/
(0x00007fcb2f660000) => /lib/x86_64-linux-gnu/
(0x00007fcb2f442000) => /lib/x86_64-linux-gnu/ (0x00007fcb2f239000)
        /lib64/ (0x00007fcb301d5000) => /lib/x86_64-linux-gnu/ (0x00007fcb2efb4000)

(gdb) bt
#0 0x00007f85cbf1bd05 in raise (sig=6) at
#1 0x00007f85cbf1fab6 in abort () at abort.c:92
#2 0x00007f85cc4d2ddf in std::uncaught_exception () at
#3 0x00007f85cc4db6c6 in std::__1::basic_ostream<char>::sentry::~sentry
(this=<value optimized out>) at ../include/ostream:243
#4 0x0000000000400d42 in std::__1::basic_ostream<char,
std::__1::char_traits<char> >& std::__1::operator<<
<std::__1::char_traits<char> >(std::__1::basic_ostream<char,
std::__1::char_traits<char> >&, char const*) ()
#5 0x0000000000400a4d in main ()

Compiling with clang test.cpp -lstdc++ and subsequent running works fine.

Any suggestions about what I might be doing wrong?

Thanks and regards,