I am using QtCreator 2.4.1, with QtSdk 4.8.1 and MinGw 4.7.2

I am trying to use the (c++11) random library, but so far I have been unsuccesful. Take the following sample code:

```
#include <random>
...
std::default_random_engine generator;
std::uniform_int_distribution<int> distribution(1,6);
int dice_roll = distribution(generator);  // generates number in the range 1..6

```

The compiler complains:

> 
> error: 'default\_random\_engine' is not a member of 'std'
> 
> 
> error: 'uniform\_int\_distribution' is not a member of 'std'
> 
> 
> 

I've got the -std=c++0x flag in my .pro file. All other STL functionality seems to work properly, so I'm puzzled!
I'd be grateful if someone could give me a hand with this.