Akash Chandwani Akash Chandwani - 1 year ago 198
C++ Question

codeblocks shows error: This file requires support for the ISO C++ 2011 standard

I want to use poisson_distribution template in my C++ code (included in random header), but cant find a way to compile it without error

My codeblocks shows an 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.

I remember while installing codeblocks I installed only gnu c/c++ compiler. Can anyone explain me how to update my compiler to standard
ISO C++ 2011
standard or suggest an alternative.

Thanks in advance...

Answer Source

You don't need to update the compiler. You just need to set it to C++11 mode.

How can I add C++11 support to code::blocks compiler?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download