c++c++11aixxlc

Compilation error with xlc++ and aix (The #include file <initializer_list> is not found)


I can't find the reason for this compilation error:

The #include file <initializer_list> is not found

I'm compiling with c++11 flag: qlanglvl=extended0x The version of xlc++ is 16.1 in aix 7.2

Can anyone help me?

Many thanks.


Solution

  • Not all of C++11 is implemented in xlC V16.1. There is an xlclang++ compiler in V16.1 that supports all of C++11.