> >> Dennis Clarke wrote: >>> James wrote: >>>> Don't use the blastwave versions of libstdc++ >>> >>> Why not ? >>> >>> Works perfectly for me. >> ... >>> $ ./hello >>> Hello, world! >>> >>> So what/where is the problem ? >> >> Hi Dennis, >> I wasn't aware when I sent that suggestion that Greg's build >> system had several different versions of g++ installed. I >> should have been more specific: >
Also ... as a follow up to the C++/GCC bug regarding non-POSIX locale : #include <iostream> #include <locale> int main(int argc, char* argv[]) { try { std::ios::sync_with_stdio(false); std::locale loc(argc > 1 ? argv[1] : ""); std::cout << loc.name() << std::endl; } catch (const std::exception& e) { std::cerr << e.what() << std::endl; } } $ file test test: ELF 64-bit LSB executable AMD64 Version 1 [SSE FXSR FPU], dynamically linked, not stripped $ ldd test libCstd.so.1 => /usr/lib/64/libCstd.so.1 libCrun.so.1 => /usr/lib/64/libCrun.so.1 libm.so.2 => /lib/64/libm.so.2 libc.so.1 => /lib/64/libc.so.1 $ ./test sq_AL.UTF-8 sq_AL.UTF-8 $ ./test pl.UTF-8 pl.UTF-8 $ ./test ca_es.iso8859...@euro ca_es.iso8859...@euro $ ./test C C $ ./test POSIX C Of course that is compiled with Studio 12 update 1 and it works just fine. You can't do that with GCC no matter how hard you try. -- Dennis Clarke dcla...@opensolaris.ca <- Email related to the open source Solaris dcla...@blastwave.org <- Email related to open source for Solaris _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code