Hello Jim! On Tue, Jan 25, 2011 at 5:38 PM, Jim Michaels <[email protected]> wrote: > #include <tr1/random> > > //mersenne twister random number generator > random_device rd(); > mt19937 eng(rd); > uniform_int<> unif(0x00, 0xff); > data=unif(eng);//get a random number > > using personal build sezero, I get: > createfl.cpp:1372: error: 'random_device' was not declared in this scope > createfl.cpp:1372: error: expected ';' before 'rd' > createfl.cpp:1373: error: 'mt19937' was not declared in this scope > createfl.cpp:1373: error: expected ';' before 'eng' > createfl.cpp:1374: error: 'uniform_int' was not declared in this scope
It looks to me like the "not declared" errors are for symbols in the std::tr1 namespace. Try changing "random_device" to "std::tra::random_device", and so on. > ... > Jim Michaels > [email protected] Good luck. K. Frank ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
