[cfe-dev] libcxx : simple hello world failed

Jaonary Rabarisoa jaonary at gmail.com
Wed Oct 6 07:22:25 PDT 2010


Hi all,

I'm trying to do a simple hello world using libc++ but I got the following
link error :

/usr/local/lib/libc++.so: undefined reference to
`std::__1::locale::locale()'
/usr/local/lib/libc++.so: undefined reference to `std::__1::num_get<wchar_t,
std::__1::istreambuf_iterator<wchar_t, std::__1::char_traits<wchar_t> >
>::id'
/usr/local/lib/libc++.so: undefined reference to `std::__1::codecvt<char,
char, __mbstate_t>::id'
/usr/local/lib/libc++.so: undefined reference to
`std::__1::locale::operator=(std::__1::locale const&)'
/usr/local/lib/libc++.so: undefined reference to
`std::__1::__throw_runtime_error(char const*)'
/usr/local/lib/libc++.so: undefined reference to `std::__1::num_put<char,
std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > >::id'
/usr/local/lib/libc++.so: undefined reference to `std::__1::num_put<wchar_t,
std::__1::ostreambuf_iterator<wchar_t, std::__1::char_traits<wchar_t> >
>::id'
/usr/local/lib/libc++.so: undefined reference to `std::__1::ctype<char>::id'
/usr/local/lib/libc++.so: undefined reference to `std::__1::num_get<char,
std::__1::istreambuf_iterator<char, std::__1::char_traits<char> > >::id'
/usr/local/lib/libc++.so: undefined reference to `std::__1::codecvt<wchar_t,
char, __mbstate_t>::id'
/usr/local/lib/libc++.so: undefined reference to
`std::__1::__vector_base_common<true>::__throw_length_error() const'
/usr/local/lib/libc++.so: undefined reference to
`std::__1::locale::locale(std::__1::locale const&)'
/usr/local/lib/libc++.so: undefined reference to
`std::__1::locale::use_facet(std::__1::locale::id&) const'
/usr/local/lib/libc++.so: undefined reference to
`std::__1::locale::~locale()'
/usr/local/lib/libc++.so: undefined reference to
`std::__1::ctype<wchar_t>::id'

I use the latest revision of both clang and libc++.

Any ideas ?


Best regards,


Jaonary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101006/39b9fe9c/attachment.html>


More information about the cfe-dev mailing list