Dear all, I wonder if IBM ships C++11 standard library with xlc?
I am trying to compile a simple test program:
int main ()
std::tuple<int,char> foo (10,'x');
std::cout << "foo contains: ";
std::cout << std::get<0>(foo) << ' ';
std::cout << std::get<1>(foo) << '\n';
I try to compile it like this:
$ xlC tmp.cpp -qlanglvl=extended0x
"/usr/lib/gcc/ppc64-redhat- linux/4.4.7/../../../../ include/c++/4.4.7/c++0x_ warning.h", line 31.2: 1540-0859 (S) #error directive: This file requires compiler and library support for the upcoming
ISO C++ standard, C++0x. This support is currently experimental, and must be
enabled with the -std=c++0x or -std=gnu++0x compiler options..
it looks like the standard library (I assume it's gnu) is not aware of the c++11 features of xlC and prevents successful compilation. Do you know any way to fix this? Does IBM ships it's own version of standard library?