I'm using Code::Blocks 13.12 GNU GCC Compiler and when I attempt to compile:
#include <iostream>
#include <array>
#include <iomanip>
using namespace std;
int main()
{
array< int, 20 > c1={};
array< int, 20 > c2={};
array< int, 20 > c3={};
}
It jumps to a header file "c++0x_warning.h" with the following warning:
#ifndef _CXX0X_WARNING_H
#define _CXX0X_WARNING_H 1
#ifndef __GXX_EXPERIMENTAL_CXX0X__
#error This file requires compiler and library support for the \
ISO C++ 2011 standard. This support is currently experimental, and must be \
enabled with the -std=c++11 or -std=gnu++11 compiler options.
#endif
#endif
What am I doing wrong? Sorry I just started studying C++ and I couldn't find any useful info when googling this issue.