Dear all

I wanted to check out the <random> library for the upcoming simulation project, but I get an error compiling this simple program taken from the very entertaining video by Stephan T. Lavavej. I cannot get C11 to work.

Code:
#include <iostream>
#include <random>

int main ( ) {
	std::mt19937 mt( 1729 );
	std::uniform_int_distribution<int> dist( 0 , 99 );
	for ( int i = 1; i < 16; i++ ) {
		std::cout << dist( mt ) << " ";
	}
	std::cout << std::endl;
}
Here is my make file:
Code:
BIN = myrand

SRC = myrand.cpp
OBJ = $(SRC:src/%.cpp=obj/%.o)

CXX = g++

CXXFLAGS = -std=c++0x
CXXFLAGS += -Wall -Wextra

.PHONY: all clean run

all: $(BIN)

$(BIN): $(SRC) 
	$(CXX) $(CXXFLAGS) $(SRC) -o $(BIN)

clean:
	rm -f $(BIN)
	rm -rf obj
	
run:
	touch $(SRC)
	make
	./$(BIN)
Compiler version:
Code:
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
Appreciate any help!

Best wishes
Serge