我想产生与使用mersenne_twister_engine的64位的随机数,但是当我尝试包括#include <random>
,编译器给了我下面什么是添加<random>头文件的正确方法?
/usr/include/c++/4.6/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options. make: * [fuse.o] Error 1
显示我怎样才能解决这个警告?
你尝试添加-std = C++ 0x或-std = gnu ++ 0x编译器选项?发生了什么? – Johnsyweb
编译器警告消息不是自解释的吗? –
同意我将从下次开始。 –