#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
createfl.cpp:1374: error: expected primary-expression before '>' token
createfl.cpp:1374: error: 'unif' was not declared in this scope
createfl.cpp:1400: warning: comparison between signed and unsigned integer
expressions
createfl.cpp:1407: error: 'eng' was not declared in this scope
createfl.cpp:1441: warning: comparison between signed and unsigned integer
expressions
createfl.cpp:1448: error: 'eng' was not declared in this scope
I don't care about the warnings, it's the errors I am concerned about.
does anyone have working code I can use, or a compiler fix?
I am using mingw-w32-bin_i686-mingw_20101003_sezero and
mingw-w64-bin_i686-mingw_20101003_sezero.
-------------
Jim Michaels
[email protected]
[email protected]
http://JimsComputerRepairandWebDesign.com
http://JesusnJim.com (my personal site, has software)
http://DoLifeComputers.JesusnJim.com (group which I lead)
---
Computer memory/disk size measurements:
[KB KiB] [MB MiB] [GB GiB] [TB TiB]
[10^3B=1,000B=1KB][2^10B=1,024B=1KiB]
[10^6B=1,000,000B=1MB][2^20B=1,048,576B=1MiB]
[10^9B=1,000,000,000B=1GB][2^30B=1,073,741,824B=1GiB]
[10^12B=1,000,000,000,000B=1TB][2^40B=1,099,511,627,776B=1TiB]
Note: disk size is measured in MB, GB, or TB, not in MiB, GiB, or TiB.
computer
memory (RAM) is measured in MiB and GiB.
------------------------------------------------------------------------------
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