I was testing the random library using the compiler g++ in codelite but i ran to a little problem and i really don't know how to fix it. I get the following error message:
f:\mingw-4.8.1\lib\gcc\mingw32\4.8.1\include\c++\bits\c++0x_warning.h:32:2: error: #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.
Then i tried to add both the compiler options mentioned above (-std=gnu++11 and -std=c++11) in settings -> build settings -> compiler options.
The problem is i keep getting the same error message. Any ideas?
Carefully take your keyboard, then gently unplug it from your computer. Using the utmost care, pour gasoline over it, then light it with a match. Before it completely melts, grab a sledge hammer and pound it into a fiery pile of ashes. Now, for the most important part. Listen to the person who posts after me.
But also I'm not sure how it works with Mingw but you are using a C++11 feature without enabling C++ 11 when compiling. Try looking up how to enable C++11 with your compiler.
I think that library random has not been fully implemented in g++. I think that might be the problem, but i'm a newbie in programming so i could be wrong.
If someone can confirm this, i'd really appreciate it.